public void SayPhrase(PhraseInput input) { if (currentPhase == Phases.PHASE1) { Debug.Log(input.phase1); } else if (currentPhase == Phases.PHASE2) { Debug.Log(input.phase2); } NextPhase(); }
// hold a button to start a phrase, and then tap another button to continue the phrase, let go of first button to finish. // R1 // 1 = Grab // Fire // R2 1 = Push // Water // L1 1 = Swing // Earth // L2 1 = Gather //Air // Start is called before the first frame update void Start() { r1 = new PhraseInput("R1: Grab", "R1: Fire"); r2 = new PhraseInput("R2: Push", "R2: Water"); l1 = new PhraseInput("L1: Swing", "L1: Earth"); l2 = new PhraseInput("L2: Gather", "L2: Air"); input = new TestInput(); input.Combo.R1.Enable(); input.Combo.R2.Enable(); input.Combo.L2.Enable(); input.Combo.L1.Enable(); }