Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 public void setCurrentWorld(WorldsState w)
 {
     currentWorld = w;
 }