platformer
Public Member Functions | Public Attributes | List of all members
UnityPlatformer.ItemMovingPlatformController Class Reference

Item to control Moving Platforms More...

Inheritance diagram for UnityPlatformer.ItemMovingPlatformController:
UnityPlatformer.Item

Public Member Functions

override bool IsUsableBy (Character p)
 Can be used by any character More...
 
override void Use (Character p)
 When use operate over given targets More...
 
- Public Member Functions inherited from UnityPlatformer.Item
virtual void Start ()
 Get BoxCollider2D More...
 
virtual Vector3 GetCenter ()
 Get real-world-coordinates center More...
 
virtual void PositionCharacter (Character p)
 Set the position/facing of the player to the desired values More...
 
virtual void Enter (Character p)
 notify Character is in area item More...
 
virtual void Exit (Character p)
 notify Character is out area item More...
 
virtual void OnTriggerEnter2D (Collider2D o)
 When HitBox(EnterAreas) enter -> Enter More...
 
virtual void OnTriggerExit2D (Collider2D o)
 When HitBox(EnterAreas) leave -> Exit More...
 

Public Attributes

MovingPlatformActions onUse = MovingPlatformActions.Nothing
 Action that Moving Platform will do More...
 
List< MovingPlatformtargets
 Moving Platforms that will be affected More...
 
- Public Attributes inherited from UnityPlatformer.Item
Vector3 offset
 Character offset when playing animation More...
 
Facing facing = Facing.None
 Character facing when playing animation More...
 
string animationName
 animation name to play when using More...
 

Detailed Description

Item to control Moving Platforms

Member Function Documentation

◆ IsUsableBy()

override bool UnityPlatformer.ItemMovingPlatformController.IsUsableBy ( Character  p)
inlinevirtual

Can be used by any character

Reimplemented from UnityPlatformer.Item.

◆ Use()

override void UnityPlatformer.ItemMovingPlatformController.Use ( Character  p)
inlinevirtual

When use operate over given targets

Implements UnityPlatformer.Item.

Member Data Documentation

◆ onUse

MovingPlatformActions UnityPlatformer.ItemMovingPlatformController.onUse = MovingPlatformActions.Nothing

Action that Moving Platform will do

◆ targets

List<MovingPlatform> UnityPlatformer.ItemMovingPlatformController.targets

Moving Platforms that will be affected


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