protected override void Awake()
 {
     base.Awake();
     audioSource = Spawn <AudioSource>(transform, "audio rewind");
     anim        = GetComponent <CharacterEffect>();
     charCtrl    = GetComponent <CharacterController>();
     fpCtrl      = GetComponent <FirstPersonController>();
     action      = GetComponent <FirstPersonCharacterAction>();
     forkChar    = FizzleScene.ForkCharAction.gameObject;
 }
Exemple #2
0
        private IEnumerator InternalInteract()
        {
            FirstPersonCharacterAction personCharacterAction = this;

            personCharacterAction.canUse = false;
            yield return(new WaitForFixedUpdate());

            personCharacterAction.canUse = true;
            personCharacterAction.currentInteractiveItem = personCharacterAction.Interact();
            yield return(new WaitForFixedUpdate());

            personCharacterAction.currentInteractiveItem = null;
        }