public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); timer = 3; SM.m_ssb.texto.text = "Game in " + System.Math.Round(timer, 2) + " seconds..."; SM.m_ssb.m_Correctas = 0; SM.m_ssb.m_CorrectasText.text = SM.m_ssb.m_Correctas + " / 12"; }
public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); PlayerPrefs.SetFloat("CurrentScore", SM.m_ssb.m_Time); PlayerPrefs.Save(); SM.m_EverLoopController.GetComponent <AudioSource> ().PlayOneShot(SM.m_ssb.m_Finish); SM.m_ssb.InvokeGoToMainMenu(2.0f); }
public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); SM.m_ssb.texto.text = "FAIL!!"; SM.m_Pieza1.GetComponentInParent <Animator>().SetInteger("girar", -1); SM.m_Pieza2.GetComponentInParent <Animator>().SetInteger("girar", -1); m_Timer = 0; SM.m_EverLoopController.GetComponent <AudioSource> ().PlayOneShot(SM.m_ssb.m_Fail); }
// Use this for initialization void Start() { // create the state machine and start it m_ParejasSM = new ParejasBehaviourStateMachine(this.gameObject); m_ParejasSM.StartSM(); m_Time = 0; m_StartTimer = false; m_TimerText.text = "00:00"; m_EverLoopController = GameObject.Find("EverloopController"); m_EverLoopController.GetComponent <EverloopController> ().StopAll(); m_EverLoopController.GetComponent <EverloopController> ().FadeInLayer(m_EverLoopController.GetComponents <AudioSource> () [0], 0); }
public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); SM.m_ssb.texto.text = "GREAT!!"; m_Timer = 0; SM.m_Pieza1.SetActive(false); SM.m_Pieza2.SetActive(false); SM.m_ssb.m_Correctas++; SM.m_ssb.m_CorrectasText.text = SM.m_ssb.m_Correctas + " / 12"; SM.m_EverLoopController.GetComponent <AudioSource> ().PlayOneShot(SM.m_ssb.m_Correct); if (SM.m_ssb.m_Correctas < 12) { SM.m_EverLoopController.GetComponent <EverloopController> ().FadeInLayer(SM.m_EverLoopController.GetComponents <AudioSource> () [SM.m_ssb.m_Correctas], 3.0f); } }
public override void Enter() { int indexMaterial; int sizeList = 24; SM = (ParejasBehaviourStateMachine)GetStateMachine(); SM.m_ssb.texto.text = "Memoriza!!"; SM.m_ssb.m_Time = 0; timer = 0; //materialIndex = new int[] {0,1,2,3,4,5,0,1,2,3,4,5}; quads = GameObject.FindGameObjectsWithTag("Quad"); for (int i = 0; i < quads.Length; ++i) { indexMaterial = Random.Range(0, sizeList); quads[i].GetComponent <MeshRenderer>().material = SM.m_ssb.materials[materialIndex[indexMaterial]]; materialIndex.RemoveAt(indexMaterial); sizeList--; } SM.m_EverLoopController.GetComponent <AudioSource> ().PlayOneShot(SM.m_ssb.m_FlipAll); for (int j = 0; j < SM.m_ssb.piezas.Length; ++j) { SM.m_ssb.piezas[j].GetComponent <Animator>().SetInteger("girar", 1); } }
public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); SM.m_ssb.texto.text = "Press S to select Second Token"; }
public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); }
public override void Enter() { SM = (ParejasBehaviourStateMachine)GetStateMachine(); SM.m_ssb.texto.text = "Revisando"; m_Timer = 0; }