C# Class UnityPlatformer.CharacterActionUseItem

TODO We need some kind of debounce / Use delay
Inheritance: CharacterAction
Datei anzeigen Open project: llafuente/unity-platformer

Public Properties

Property Type Description
actionUse string
characterOffset Vector3

Public Methods

Method 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 method

REVIEW do default actions. but maybe should do nothing...
public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

PerformAction() public method

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

WantsToUpdate() public method

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

Property Details

actionUse public_oe property

Trigger input Action 'Use'
public string actionUse
return string

characterOffset public_oe property

Offset position
public Vector3 characterOffset
return Vector3