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); } }
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); } }