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(); }
public void StartWalking() { tutorial.DisableHelpGUI(); shouldStartWalking = true; Utilities.PlayAudio(GetComponent <AudioSource>()); }