DoopelPonger
|
Schmitty Doop's eyes will follow a player and blink. Every time the eyes blink it can change which player too look at. This class controls which player the eyes should follow and when/how to blink. More...
Public Member Functions | |
void | Awake () |
Initialize references and hooks in the EventManager. More... | |
void | OnDestroy () |
Remove hooks that have been placed in the EventManager once Schmitty Doop has been destroyed. More... | |
void | FixedUpdate () |
Blink/unblink the eyes if the time passed. More... | |
void | AnimationFinished () |
Public Member Functions inherited from CoopSchmittyDoopAnimator | |
void | ChangeAnimatorState (CoopSchmittyDoopAnimatorController.AnimatorState newState) |
Public Attributes | |
CoopSchmittyDoopEye [] | openEyes |
GameObject | closedEyes |
float | fireTimeout |
Range | timeBeforePlayerSwitchRange |
float | chanceToChangePlayerToFollow |
float | spawnWaitTime |
Protected Member Functions | |
override void | ChangeStateToFireEars () |
Schmitty is firing bullets out of its ears. More... | |
override void | ChangeStateToFireMouth () |
Schmitty is firing bullets out of its mouth. More... | |
override void | ChangeStateToIdle () |
Schmitty is not doing anything, just chilling. More... | |
override void | ChangeStateToHit () |
Schmitty has been hit by one of the players. More... | |
override void | ChangeStateToSpawn () |
Schmitty has been spawned into the game. More... | |
Schmitty Doop's eyes will follow a player and blink. Every time the eyes blink it can change which player too look at. This class controls which player the eyes should follow and when/how to blink.
When Schmitty Doop fires bulelts, the eyes are forced shut and there's a chance to change the player the eyes are looking at.
void CoopSchmittyDoopEyeAnimator.AnimationFinished | ( | ) |
void CoopSchmittyDoopEyeAnimator.Awake | ( | ) |
Initialize references and hooks in the EventManager.
|
protectedvirtual |
Schmitty is firing bullets out of its ears.
Implements CoopSchmittyDoopAnimator.
|
protectedvirtual |
Schmitty is firing bullets out of its mouth.
Implements CoopSchmittyDoopAnimator.
|
protectedvirtual |
Schmitty has been hit by one of the players.
Implements CoopSchmittyDoopAnimator.
|
protectedvirtual |
Schmitty is not doing anything, just chilling.
Implements CoopSchmittyDoopAnimator.
|
protectedvirtual |
Schmitty has been spawned into the game.
Implements CoopSchmittyDoopAnimator.
void CoopSchmittyDoopEyeAnimator.FixedUpdate | ( | ) |
Blink/unblink the eyes if the time passed.
void CoopSchmittyDoopEyeAnimator.OnDestroy | ( | ) |
Remove hooks that have been placed in the EventManager once Schmitty Doop has been destroyed.
float CoopSchmittyDoopEyeAnimator.chanceToChangePlayerToFollow |
Once the time is up to switch players, this percentage will check to see if the eyes should switch.
GameObject CoopSchmittyDoopEyeAnimator.closedEyes |
The parent object that holds the renderers of the forced closed eyes.
float CoopSchmittyDoopEyeAnimator.fireTimeout |
The time to wait after Schmitty Doop fires a bullet and to change the eyes back to the open eyes.
CoopSchmittyDoopEye [] CoopSchmittyDoopEyeAnimator.openEyes |
The eyes of Schmitty Doop.
float CoopSchmittyDoopEyeAnimator.spawnWaitTime |
Time to wait before the eyes are spawned in the game.
Range CoopSchmittyDoopEyeAnimator.timeBeforePlayerSwitchRange |
Time range to wait before changing the player the eyes look at. This only matters if both players are active.