예제 #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);
     }
 }