A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
New Unity Live Help updates. Check them out here!
you could try an approach with a global save manager class, which stores instances of an interface. I'm not that good at explaining in...
Well... we don't know what you want to achieve with your system.
You could give use a description and we could give you some suggestions to...
The loop itself is fine but using GetComponent that often is not recommended.
You don't need to call GetComponent in this case, because shooters...
Change "void update()" to "void Update()".
Look here https://docs.unity3d.com/ScriptReference/MonoBehaviour.html for better understanding.
I hope I understood correctly. So you could use an event and delegate for the objects. So if objectB moves if fires an event and ObjectA...
since I can't get it to work I decided to cut this "feature". This is my code now:
I tried your code and it seems to work. Unfortunately in game mode the sun freezes at 90 degrees.
Here is another thing. In editor...
I also tried adding or substracting of 180 but it also doesn't work.
Tried something like this:
int counter =...
thanks for the answer.
Now I tried:
sun.transform.rotation = Quaternion.AngleAxis(startRotation, Vector3.right);
But the result is the...
I'm currently working on a day and night cycle for my project.
The problem is that I get some weird angles after I try to rotate my...
I'm currently working on the prim algorithm and got a problem.
Heres my code: http://pastebin.com/a7AJkjEr
So atm I'm filling a list of...
So I tested a bit and found out that that the error occurs through the waypoints.
Well I changed my script but still it's not working...
I really don't get it.
Does somebody have an idea for a workaround?
Script attachted to...
The error appears in line 20 of the BearSpawnScript.
And as you can see set the waypoints in my inspector:...
so I'm trying to build a Tower which spawns 3 "bears" and calls the function MoveToLocation in the BearScript.
The BearScript is...