Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     camera     = GetComponent <Camera>();
     unitselect = GetComponent <SelectUNIT>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     soldierspawnpoint = gameObject.transform;
     slunit            = FindObjectOfType <SelectUNIT>().GetComponent <SelectUNIT>();
     manager           = FindObjectOfType <ManagerScript>().GetComponent <ManagerScript>();
 }