DoopelPonger
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
CoopSchmittyDoopEyeAnimator Class Reference

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...

Inheritance diagram for CoopSchmittyDoopEyeAnimator:
Inheritance graph
[legend]
Collaboration diagram for CoopSchmittyDoopEyeAnimator:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Member Function Documentation

◆ AnimationFinished()

void CoopSchmittyDoopEyeAnimator.AnimationFinished ( )

◆ Awake()

void CoopSchmittyDoopEyeAnimator.Awake ( )

Initialize references and hooks in the EventManager.

◆ ChangeStateToFireEars()

override void CoopSchmittyDoopEyeAnimator.ChangeStateToFireEars ( )
protectedvirtual

Schmitty is firing bullets out of its ears.

Implements CoopSchmittyDoopAnimator.

◆ ChangeStateToFireMouth()

override void CoopSchmittyDoopEyeAnimator.ChangeStateToFireMouth ( )
protectedvirtual

Schmitty is firing bullets out of its mouth.

Implements CoopSchmittyDoopAnimator.

◆ ChangeStateToHit()

override void CoopSchmittyDoopEyeAnimator.ChangeStateToHit ( )
protectedvirtual

Schmitty has been hit by one of the players.

Implements CoopSchmittyDoopAnimator.

◆ ChangeStateToIdle()

override void CoopSchmittyDoopEyeAnimator.ChangeStateToIdle ( )
protectedvirtual

Schmitty is not doing anything, just chilling.

Implements CoopSchmittyDoopAnimator.

◆ ChangeStateToSpawn()

override void CoopSchmittyDoopEyeAnimator.ChangeStateToSpawn ( )
protectedvirtual

Schmitty has been spawned into the game.

Implements CoopSchmittyDoopAnimator.

◆ FixedUpdate()

void CoopSchmittyDoopEyeAnimator.FixedUpdate ( )

Blink/unblink the eyes if the time passed.

◆ OnDestroy()

void CoopSchmittyDoopEyeAnimator.OnDestroy ( )

Remove hooks that have been placed in the EventManager once Schmitty Doop has been destroyed.

Member Data Documentation

◆ chanceToChangePlayerToFollow

float CoopSchmittyDoopEyeAnimator.chanceToChangePlayerToFollow

Once the time is up to switch players, this percentage will check to see if the eyes should switch.

◆ closedEyes

GameObject CoopSchmittyDoopEyeAnimator.closedEyes

The parent object that holds the renderers of the forced closed eyes.

◆ fireTimeout

float CoopSchmittyDoopEyeAnimator.fireTimeout

The time to wait after Schmitty Doop fires a bullet and to change the eyes back to the open eyes.

◆ openEyes

CoopSchmittyDoopEye [] CoopSchmittyDoopEyeAnimator.openEyes

The eyes of Schmitty Doop.

◆ spawnWaitTime

float CoopSchmittyDoopEyeAnimator.spawnWaitTime

Time to wait before the eyes are spawned in the game.

◆ timeBeforePlayerSwitchRange

Range CoopSchmittyDoopEyeAnimator.timeBeforePlayerSwitchRange

Time range to wait before changing the player the eyes look at. This only matters if both players are active.


The documentation for this class was generated from the following file: