Пример #1
0
 public void Start(GameObject obj)
 {
     select = GameObject.Find("Player Manager").GetComponent <UnitSelection>();
     if (type == "Unit")
     {
         select.AddUnit(obj);
     }
     else if (type == "Building")
     {
         select.AddBuilding(obj);
     }
 }
Пример #2
0
 public void Start(GameObject obj)
 {
     select = GameObject.Find("Player Manager").GetComponent<UnitSelection>();
     if(type == "Unit"){
         select.AddUnit(obj);
     }
     else if(type == "Building"){
         select.AddBuilding(obj);
     }
 }