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

Event listener to change the timescale based on game events. For example, a player dies. More...

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

Public Member Functions

void Awake ()
 
void FixedUpdate ()
 

Public Attributes

float playerDeathSlowmoTime
 

Detailed Description

Event listener to change the timescale based on game events. For example, a player dies.

Member Function Documentation

◆ Awake()

void TimeChangeEventManager.Awake ( )

Set up the listeners for the events that should trigger slowmotion.

◆ FixedUpdate()

void TimeChangeEventManager.FixedUpdate ( )

Check to see if it is time to set the time scale back to 1 after an event to trigger slow motion.

Member Data Documentation

◆ playerDeathSlowmoTime

float TimeChangeEventManager.playerDeathSlowmoTime

The amount of time to stay in slow motion when a player dies.


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