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(); }
public void StartPlaying() //ESTADO INICIAL { states[(int)EnumStates.Initial].SetActive(false); darkenScreen.SetActive(false); gameController.GameStarts(); }