Hey Guys How to make a script 'private Transform Waypoint;,
Hey Guys How to make a script 'private Transform Waypoint;' and I need to create lets say 5 gameObject named Waypoint,1,2....4,5 And those game objects after when reach lets say 'Waypoint1' needs to go to another 'Waypoint2' and so on. I have alreadt made 'public Transform[] waypoints;' but I need private One to exacly say to what object it needs to go because i need to attach it to prefab. If any one could help me i would be really Gratefull. :)
I already have:
Waypoint = GameObject.FindGameObjectWithTag("Waypoint").GetComponent();
and how to follow to the next game object "Waypoint2" ?
Your answer
Follow this Question
Related Questions
Keep the distance of one object relative to another while changing its size 0 Answers
Does anyone know why transform.position isn't working? (See details) 1 Answer
How do you convert an object to a transform? 1 Answer
How to assign script to object? 0 Answers
My Brain is fogged: How do I move a networked object with user input 0 Answers