Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.WindAffector Class Reference

Blows the character based on their distance from a trigger. WARNING: Supports only one character in range at a time. TODO: Update this to support multiplayer. More...

Inheritance diagram for PlatformerPro.WindAffector:

Public Attributes

Vector2 acceleration
 The amount of acceleration applied. More...
 
float fadeWithDistance
 If true the velocity is instantly set to acceleration instead of being applied as a change over time. More...
 
bool instantlySetVelocity
 If true the velocity is instantly set to acceleration instead of being applied as a change over time. More...
 

Protected Member Functions

virtual void Init ()
 Init this instance. More...
 
virtual void ApplyEffect ()
 Do the affect to each character in range. More...
 
virtual void HandleTriggerEntered (object sender, CharacterEventArgs args)
 Handles the trigger entered. More...
 
virtual void HandleTriggerExited (object sender, CharacterEventArgs args)
 Handles the trigger exited. More...
 

Protected Attributes

Trigger myTrigger
 My trigger. More...
 
List< CharacteraffectedCharacters
 List of characters currently affected by this affector. More...
 

Detailed Description

Blows the character based on their distance from a trigger. WARNING: Supports only one character in range at a time. TODO: Update this to support multiplayer.

Member Function Documentation

◆ ApplyEffect()

virtual void PlatformerPro.WindAffector.ApplyEffect ( )
protectedvirtual

Do the affect to each character in range.

◆ HandleTriggerEntered()

virtual void PlatformerPro.WindAffector.HandleTriggerEntered ( object  sender,
CharacterEventArgs  args 
)
protectedvirtual

Handles the trigger entered.

Parameters
senderSender.
argsArguments.

◆ HandleTriggerExited()

virtual void PlatformerPro.WindAffector.HandleTriggerExited ( object  sender,
CharacterEventArgs  args 
)
protectedvirtual

Handles the trigger exited.

Parameters
senderSender.
argsArguments.

◆ Init()

virtual void PlatformerPro.WindAffector.Init ( )
protectedvirtual

Init this instance.

Member Data Documentation

◆ acceleration

Vector2 PlatformerPro.WindAffector.acceleration

The amount of acceleration applied.

◆ affectedCharacters

List<Character> PlatformerPro.WindAffector.affectedCharacters
protected

List of characters currently affected by this affector.

◆ fadeWithDistance

float PlatformerPro.WindAffector.fadeWithDistance

If true the velocity is instantly set to acceleration instead of being applied as a change over time.

◆ instantlySetVelocity

bool PlatformerPro.WindAffector.instantlySetVelocity

If true the velocity is instantly set to acceleration instead of being applied as a change over time.

◆ myTrigger

Trigger PlatformerPro.WindAffector.myTrigger
protected

My trigger.


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