BomberUnits
...a Unity learning project
PlayerReadyBehaviour Class Reference

Active behaviour when the player is ready. Yeah. More...

+ Inheritance diagram for PlayerReadyBehaviour:
+ Collaboration diagram for PlayerReadyBehaviour:

Public Member Functions

override void OnStateEnter (Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 Set all local players to ready. More...
 
override void OnStateExit (Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 Sets all local players back to not playing. More...
 

Detailed Description

Active behaviour when the player is ready. Yeah.

Definition at line 9 of file PlayerReadyBehaviour.cs.

Member Function Documentation

◆ OnStateEnter()

override void OnStateEnter ( Animator  animator,
AnimatorStateInfo  stateInfo,
int  layerIndex 
)
inline

Set all local players to ready.

Could be changed in the future for individual players signalling ready.

Definition at line 15 of file PlayerReadyBehaviour.cs.

◆ OnStateExit()

override void OnStateExit ( Animator  animator,
AnimatorStateInfo  stateInfo,
int  layerIndex 
)
inline

Sets all local players back to not playing.

This may be invoked when leaving the main menu towards a level, but that is not too bad.

Definition at line 23 of file PlayerReadyBehaviour.cs.


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