C# Class UnityPlatformer.CharacterActionUseItem

TODO We need some kind of debounce / Use delay
Inheritance: CharacterAction
Afficher le fichier Open project: llafuente/unity-platformer

Méthodes publiques

Свойство Type Description
actionUse string
characterOffset Vector3

Méthodes publiques

Méthode Description
GetPostUpdateActions ( ) : PostUpdateActions

REVIEW do default actions. but maybe should do nothing...

PerformAction ( float delta ) : void

Use the item, all logic is in the Item.Use

WantsToUpdate ( float delta ) : int

On(Areas.Item) and item is usable by me and hit 'Use' action!

Method Details

GetPostUpdateActions() public méthode

REVIEW do default actions. but maybe should do nothing...
public GetPostUpdateActions ( ) : PostUpdateActions
Résultat PostUpdateActions

PerformAction() public méthode

Use the item, all logic is in the Item.Use
public PerformAction ( float delta ) : void
delta float
Résultat void

WantsToUpdate() public méthode

On(Areas.Item) and item is usable by me and hit 'Use' action!
public WantsToUpdate ( float delta ) : int
delta float
Résultat int

Property Details

actionUse public_oe property

Trigger input Action 'Use'
public string actionUse
Résultat string

characterOffset public_oe property

Offset position
public Vector3 characterOffset
Résultat Vector3