public static void SelectBuilding(SGBuilding b) { _selectedBuilding = b; BuildingParamEditor bpe = buildingParamEditor; bpe.SetBuilding(b); }
public static void UnSelectBuilding() { _selectedBuilding = null; BuildingParamEditor bpe = buildingParamEditor; //BuildingParamEditor bpe = GameObject.Find("BuildingParams").GetComponent<BuildingParamEditor>(); bpe.SetBuilding(null); }