public void PassGameObjectToPlace(string objId) { if (cloneObj != null) { Destroy(cloneObj); } CloseAll(); hasObj = true; cloneObj = null; objToPlace = RessourcesManager.GetInstance().GetObjBase(objId).objPrefab; }
void Awake() { instance = this; }
public void PassGameObjectToPlace(string objId) { if (cloneObj != null) { Destroy(cloneObj); } CloseAll(); hasObj = true; cloneObj = null; objToPlace = RessourcesManager.GetInstance().GetObjBase(objId).objPrefab; }
void Awake() { instance = this; }