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

Additional trigger conditions. Add a subclass of this this to the same GameObject as a Trigger to add new contions. More...

Inheritance diagram for PlatformerPro.AdditionalCondition:
PlatformerPro.PlatformerProMonoBehaviour PlatformerPro.ActionButtonCondition PlatformerPro.ActivatedCondition PlatformerPro.ActiveMovementCondition PlatformerPro.ActiveMovementNotInListCondition PlatformerPro.AndConditionCombiner PlatformerPro.CharacterSwimmingCondition PlatformerPro.CoolDownCondition PlatformerPro.DeactivatedCondition PlatformerPro.DoorIsOpenCondition PlatformerPro.FacingDirectionCondition PlatformerPro.FrictionCondition PlatformerPro.GameObjectActive PlatformerPro.GroundLayerCondition PlatformerPro.HeightCondition PlatformerPro.InputDirectionCondition PlatformerPro.IsInColliderCondition PlatformerPro.JumpButtonCondition PlatformerPro.MinimumHealthCondition PlatformerPro.MustBeAirborneCondition PlatformerPro.MustBeGroundedCondition PlatformerPro.MustHaveItemCondition PlatformerPro.OrConditionCombiner PlatformerPro.PlatformActivatedCondition PlatformerPro.PowerUpActiveCondition

Public Member Functions

virtual bool CheckCondition (Character character, object other)
 Checks the condition. For example a check when entering a trigger. More...
 
virtual bool CheckInverseCondition (Character character, object other)
 Checks the inverse condition. For example a check when leaving a trigger. More...
 
virtual void Activated (Character character, object other)
 Applies any activation effects. More...
 
- Public Member Functions inherited from PlatformerPro.PlatformerProMonoBehaviour
virtual void Validate (PlatformerProMonoBehaviour myTarget)
 Override this method if you want to provide custom validation. The actual code should be surrounded by the if UNITY_EDITOR / endif directive. More...
 

Public Attributes

bool applyOnInverse
 If true condition will be applied on inverse (for example trigger exit as well as enter). More...
 

Additional Inherited Members

- Properties inherited from PlatformerPro.PlatformerProMonoBehaviour
virtual string Header [get]
 Gets the header string used to describe the component. More...
 
virtual string DocLink [get]
 Gets a link to documentation site. More...
 
virtual string VideoLink [get]
 Gets a link to a youtube video. More...
 
virtual string Deprecated [get]
 If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More...
 

Detailed Description

Additional trigger conditions. Add a subclass of this this to the same GameObject as a Trigger to add new contions.

Member Function Documentation

◆ Activated()

virtual void PlatformerPro.AdditionalCondition.Activated ( Character  character,
object  other 
)
virtual

Applies any activation effects.

Parameters
characterCharacter.
otherOther object supporting the condition.

Reimplemented in PlatformerPro.MustHaveItemCondition, PlatformerPro.MinimumHealthCondition, PlatformerPro.DeactivatedCondition, PlatformerPro.CoolDownCondition, and PlatformerPro.ActivatedCondition.

◆ CheckCondition()

◆ CheckInverseCondition()

virtual bool PlatformerPro.AdditionalCondition.CheckInverseCondition ( Character  character,
object  other 
)
virtual

Checks the inverse condition. For example a check when leaving a trigger.

Returns
true, if inverse condition is met, false otherwise.
Parameters
characterCharacter.
otherOther object supporting the condition.

Reimplemented in PlatformerPro.FacingDirectionCondition, PlatformerPro.ActiveMovementNotInListCondition, and PlatformerPro.ActiveMovementCondition.

Member Data Documentation

◆ applyOnInverse

bool PlatformerPro.AdditionalCondition.applyOnInverse

If true condition will be applied on inverse (for example trigger exit as well as enter).


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