private void TakeItem()
 {
     stepForward = false;
     anim.SetBool("IsWalking", false);
     tutorial.ShowNoInputSymbol();
     gameObject.GetComponent <TakeItem>().TakeIPad();
 }
Example #2
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();
    }