示例#1
0
    public void StartPlaying()   //ESTADO INICIAL
    {
        states[(int)EnumStates.Initial].SetActive(false);
        if (!timeAnimationDone)
        {
            GameObject.Find("ContenedorTiempo").transform.SetSiblingIndex(GameObject.Find("ContenedorTiempo").transform.GetSiblingIndex() - 1); //Le subimos en la jerarquia
            timeAnimationDone = true;
        }

        darkenScreen.SetActive(false);
        gameController.GameStarts();
    }
示例#2
0
 public void StartPlaying()   //ESTADO INICIAL
 {
     states[(int)EnumStates.Initial].SetActive(false);
     darkenScreen.SetActive(false);
     gameController.GameStarts();
 }