Feel  4.0.1
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.DemoBall Class Reference

A class handling the lifecycle of the balls included in the MMFeedbacks demo It waits for 2 seconds after the spawn of the ball, and destroys it, playing a MMFeedbacks while it does so More...

Inheritance diagram for MoreMountains.Feedbacks.DemoBall:

Public Attributes

float LifeSpan = 2f
 the duration (in seconds) of the life of the ball More...
 
MMFeedbacks DeathFeedback
 the feedback to play when the ball dies More...
 

Protected Member Functions

virtual void Start ()
 On start, we trigger the programmed death of the ball More...
 
virtual IEnumerator ProgrammedDeath ()
 Waits for 2 seconds, then kills the ball object after having played the MMFeedbacks More...
 

Detailed Description

A class handling the lifecycle of the balls included in the MMFeedbacks demo It waits for 2 seconds after the spawn of the ball, and destroys it, playing a MMFeedbacks while it does so

Member Function Documentation

◆ ProgrammedDeath()

virtual IEnumerator MoreMountains.Feedbacks.DemoBall.ProgrammedDeath ( )
protectedvirtual

Waits for 2 seconds, then kills the ball object after having played the MMFeedbacks

Returns

◆ Start()

virtual void MoreMountains.Feedbacks.DemoBall.Start ( )
protectedvirtual

On start, we trigger the programmed death of the ball

Member Data Documentation

◆ DeathFeedback

MMFeedbacks MoreMountains.Feedbacks.DemoBall.DeathFeedback

the feedback to play when the ball dies

◆ LifeSpan

float MoreMountains.Feedbacks.DemoBall.LifeSpan = 2f

the duration (in seconds) of the life of the ball


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