void Start() { // trees gameC = FindObjectOfType(typeof(GameController)) as GameController; spawnTrees = false; for (int i = 0; i < countTrees; i++) { GameObject tempM = Instantiate(tPrefab) as GameObject; trees.Add(tempM); tempM.SetActive(false); } // currentWorld = WorldsState.DAY; }
public void setCurrentWorld(WorldsState w) { currentWorld = w; }