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. :)
↧