platformer
|
Base class for Square trigger (BoxCollider2D) More...
Public Member Functions | |
override void | Start () |
Force BoxCollider2D to be trigger using: Utils.KinematicTrigger and initialize character list More... | |
virtual Vector3 | GetCenter () |
Get real-world-coordinates center More... | |
virtual void | OnDestroy () |
exit all player More... | |
virtual void | CharacterEnter (Character p) |
Add character to the list More... | |
virtual void | CharacterExit (Character p) |
Remove character from the list More... | |
virtual void | CharacterStay (Character p) |
Do nothing More... | |
virtual void | OnTriggerEnter2D (Collider2D o) |
if Hitbox with EnterAreas enter -> CharacterEnter More... | |
virtual void | OnTriggerExit2D (Collider2D o) |
if Hitbox with EnterAreas leave -> CharacterExit More... | |
virtual void | OnTriggerStay2D (Collider2D o) |
if Hitbox with EnterAreas leave -> CharacterExit More... | |
Public Attributes | |
BoxCollider2D | body |
cached BoxCollider2D component More... | |
Character [] | characters |
List of character in the Tile More... | |
int | charCount |
How many character are in the Tile More... | |
![]() | |
bool | debug = false |
Display collider as flat color More... | |
Base class for Square trigger (BoxCollider2D)
|
inlinevirtual |
Add character to the list
Reimplemented in UnityPlatformer.Track, UnityPlatformer.RopeSection, and UnityPlatformer.Grab.
|
inlinevirtual |
Remove character from the list
Reimplemented in UnityPlatformer.Track, UnityPlatformer.RopeSection, and UnityPlatformer.Grab.
|
inlinevirtual |
Do nothing
Reimplemented in UnityPlatformer.Track.
|
inlinevirtual |
Get real-world-coordinates center
Reimplemented in UnityPlatformer.RopeSection.
|
inlinevirtual |
exit all player
|
inlinevirtual |
if Hitbox with EnterAreas enter -> CharacterEnter
|
inlinevirtual |
if Hitbox with EnterAreas leave -> CharacterExit
|
inlinevirtual |
if Hitbox with EnterAreas leave -> CharacterExit
|
inlinevirtual |
Force BoxCollider2D to be trigger using: Utils.KinematicTrigger and initialize character list
Reimplemented from UnityPlatformer.Physhic2DMonoBehaviour.
BoxCollider2D UnityPlatformer.BoxTileTrigger.body |
cached BoxCollider2D component
Character [] UnityPlatformer.BoxTileTrigger.characters |
List of character in the Tile
int UnityPlatformer.BoxTileTrigger.charCount |
How many character are in the Tile