C# Класс UnityPlatformer.Item

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

Открытые свойства

Свойство Тип Описание
animationName string
facing Facing
offset UnityEngine.Vector3

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

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

notify Character is in area item

Exit ( Character p ) : void

notify Character is out area item

GetCenter ( ) : Vector3

Get real-world-coordinates center

IsUsableBy ( Character p ) : bool

everybody can use this item otherwise, override

OnTriggerEnter2D ( Collider2D o ) : void

When HitBox(EnterAreas) enter -> Enter

OnTriggerExit2D ( Collider2D o ) : void

When HitBox(EnterAreas) leave -> Exit

PositionCharacter ( Character p ) : void

Set the position/facing of the player to the desired values

Start ( ) : void

Get BoxCollider2D

Use ( Character p ) : void

Implement this function with the action that need to performed

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

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

notify Character is in area item
public Enter ( Character p ) : void
p Character
Результат void

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

notify Character is out area item
public Exit ( Character p ) : void
p Character
Результат void

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

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

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

everybody can use this item otherwise, override
public IsUsableBy ( Character p ) : bool
p Character
Результат bool

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

When HitBox(EnterAreas) enter -> Enter
public OnTriggerEnter2D ( Collider2D o ) : void
o UnityEngine.Collider2D
Результат void

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

When HitBox(EnterAreas) leave -> Exit
public OnTriggerExit2D ( Collider2D o ) : void
o UnityEngine.Collider2D
Результат void

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

Set the position/facing of the player to the desired values
public PositionCharacter ( Character p ) : void
p Character
Результат void

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

Get BoxCollider2D
public Start ( ) : void
Результат void

Use() публичный абстрактный Метод

Implement this function with the action that need to performed
public abstract Use ( Character p ) : void
p Character
Результат void

Описание свойств

animationName публичное свойство

animation name to play when using
public string animationName
Результат string

facing публичное свойство

Character facing when playing animation
public Facing facing
Результат Facing

offset публичное свойство

Character offset when playing animation
public Vector3,UnityEngine offset
Результат UnityEngine.Vector3