DoopelPonger
Public Types | Public Member Functions | Public Attributes | List of all members
CoopSchmittyDoopAnimatorController Class Reference

Animation component that will take the state changes of Schmitty Doop and pass them on to the animators that will actually be animating. More...

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

Public Types

enum  AnimatorState {
  AnimatorState.FIRE_EARS, AnimatorState.FIRE_MOUTH, AnimatorState.HIT, AnimatorState.IDLE,
  AnimatorState.SPAWN
}
 The action Schmitty Doop is performing. More...
 

Public Member Functions

void ChangeAnimatorState (AnimatorState newState)
 Let the animators know to perform a new animation. More...
 
void Spawn (System.Action callback)
 Perform the spawn animations on the animators. More...
 

Public Attributes

float waitTimeBeforeTriggeringSpawn
 
float waitTimeAfterTriggeringSpawn
 
CoopSchmittyDoopAnimator [] animators
 

Detailed Description

Animation component that will take the state changes of Schmitty Doop and pass them on to the animators that will actually be animating.

Member Enumeration Documentation

◆ AnimatorState

The action Schmitty Doop is performing.

Enumerator
FIRE_EARS 
FIRE_MOUTH 
HIT 
IDLE 
SPAWN 

Member Function Documentation

◆ ChangeAnimatorState()

void CoopSchmittyDoopAnimatorController.ChangeAnimatorState ( AnimatorState  newState)

Let the animators know to perform a new animation.

Parameters
newStateThe state Schmitty Doop is now in.

◆ Spawn()

void CoopSchmittyDoopAnimatorController.Spawn ( System.Action  callback)

Perform the spawn animations on the animators.

Parameters
callbackThe function that should be notified once all the animations have most likely completed. In reality, it gets called after waitTimeAfterTriggeringSpawn.

Member Data Documentation

◆ animators

CoopSchmittyDoopAnimator [] CoopSchmittyDoopAnimatorController.animators

The list of animators that need to be notified of animation state changes.

◆ waitTimeAfterTriggeringSpawn

float CoopSchmittyDoopAnimatorController.waitTimeAfterTriggeringSpawn

The time to wait after letting the animators know that Schmitty Doop has spawned and before calling the callback to let the listener know the spawn animation is complete.

◆ waitTimeBeforeTriggeringSpawn

float CoopSchmittyDoopAnimatorController.waitTimeBeforeTriggeringSpawn

The time to wait before letting the animators know that Schmitty Doop has spawned.


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