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

Class to control the size of the boomerang as it gets thrown. More...

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

Public Member Functions

void Awake ()
 Initialize the Unity Animator. More...
 
void Init ()
 Initialize all variables in the animator, so that animations can start fresh. More...
 
void Despawn (System.Action despawnFinishedAction)
 The boomerang should have its size decrease. More...
 
void StartAnimation ()
 Start the boomerang throw animation. More...
 
void FixedUpdate ()
 Update the animation timer and notify the function pointer when the animtations are finished. More...
 

Public Attributes

float timeToFullThrowSize
 
float timeToFullSpawnSize
 

Detailed Description

Class to control the size of the boomerang as it gets thrown.

Member Function Documentation

◆ Awake()

void CoopBoomerangAnimator.Awake ( )

Initialize the Unity Animator.

◆ Despawn()

void CoopBoomerangAnimator.Despawn ( System.Action  despawnFinishedAction)

The boomerang should have its size decrease.

Parameters
despawnFinishedActionThe callback to trigger once the boomerang is no longer visible.

◆ FixedUpdate()

void CoopBoomerangAnimator.FixedUpdate ( )

Update the animation timer and notify the function pointer when the animtations are finished.

◆ Init()

void CoopBoomerangAnimator.Init ( )

Initialize all variables in the animator, so that animations can start fresh.

◆ StartAnimation()

void CoopBoomerangAnimator.StartAnimation ( )

Start the boomerang throw animation.

Member Data Documentation

◆ timeToFullSpawnSize

float CoopBoomerangAnimator.timeToFullSpawnSize

The amount of time it takes to despawn the boomerang.

◆ timeToFullThrowSize

float CoopBoomerangAnimator.timeToFullThrowSize

The amount of time it takes to get to the full size.


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