C# Класс UnityPlatformer.BoxTileTrigger

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

Открытые методы

Метод Описание
CharacterEnter ( Character p ) : void

add character to the list

CharacterExit ( Character p ) : void

remove character from the list

GetCenter ( ) : Vector3

Get real-world-coordinates center

OnDestroy ( ) : void

exit all player

OnTriggerEnter2D ( Collider2D o ) : void

if Hitbox with EnterAreas enter -> CharacterEnter

OnTriggerExit2D ( Collider2D o ) : void

if Hitbox with EnterAreas leave -> CharacterExit

Start ( ) : void

force BoxCollider2D to be trigger

Описание методов

CharacterEnter() публичный Метод

add character to the list
public CharacterEnter ( Character p ) : void
p Character
Результат void

CharacterExit() публичный Метод

remove character from the list
public CharacterExit ( Character p ) : void
p Character
Результат void

GetCenter() публичный Метод

Get real-world-coordinates center
public GetCenter ( ) : Vector3
Результат UnityEngine.Vector3

OnDestroy() публичный Метод

exit all player
public OnDestroy ( ) : void
Результат void

OnTriggerEnter2D() публичный Метод

if Hitbox with EnterAreas enter -> CharacterEnter
public OnTriggerEnter2D ( Collider2D o ) : void
o UnityEngine.Collider2D
Результат void

OnTriggerExit2D() публичный Метод

if Hitbox with EnterAreas leave -> CharacterExit
public OnTriggerExit2D ( Collider2D o ) : void
o UnityEngine.Collider2D
Результат void

Start() публичный Метод

force BoxCollider2D to be trigger
public Start ( ) : void
Результат void