Ejemplo n.º 1
0
    private IEnumerator playJoystickInstructions()
    {
        tutorial.DisableHelpGUI();
        tutorial.ShowNoInputSymbol();
        if (!initialInstructionsPlayed)
        {
            Utilities.PlayAudio(initialInstructions);
            if (initialInstructions != null)
            {
                yield return(new WaitForSeconds(initialInstructions.clip.length));
            }
            initialInstructionsPlayed = true;
        }
        if (!GameFlags.JoyStickTutorialHasRun)
        {
            foreach (var joystickAnimation in joystickAnimations)
            {
                joystickAnimation.SetActive(true);
                var audio = joystickAnimation.GetComponent <AudioSource>();
                Utilities.PlayAudio(audio);
                yield return(new WaitForSeconds(audio.clip.length));

                joystickAnimation.SetActive(false);
            }
            GameFlags.JoyStickTutorialHasRun = true;
        }
        EnableJoystick();
    }
Ejemplo n.º 2
0
 public void StartWalking()
 {
     tutorial.DisableHelpGUI();
     shouldStartWalking = true;
     Utilities.PlayAudio(GetComponent <AudioSource>());
 }