Class InteractableStates
list of Interactable states and basic comparison
Inheritance
InteractableStates
Assembly: cs.temp.dll.dll
public class InteractableStates : BaseStateModel
Constructors
Declaration
public InteractableStates()
Declaration
public InteractableStates(State defaultState)
Parameters
Type |
Name |
Description |
State |
defaultState |
|
Fields
Declaration
protected State[] allStates
Field Value
Methods
Compare all state values, set appropriate current State and return that current State
Declaration
public override State CompareStates()
Returns
Type |
Description |
State |
Current State after comparing State values
|
Overrides
Returns the default states for InteractableStates.
Default states are set on an interactable when it is created and no other list of
states is specified.
Default States should match "DefaultStates" scriptable object in Interactable
Declaration
public virtual List<State> GetDefaultStates()
Returns
Type |
Description |
List<State> |
|
Declaration
public State GetState(InteractableStates.InteractableStateEnum state)
Parameters
Returns
Get list of available States for this State Model
Declaration
public override State[] GetStates()
Returns
Type |
Description |
State[] |
Array of available State objects
|
Overrides
Declaration
public virtual void SetStateOff(InteractableStates.InteractableStateEnum state)
Parameters
Declaration
public virtual void SetStateOn(InteractableStates.InteractableStateEnum state)
Parameters
Declaration
public virtual void SetStateValue(InteractableStates.InteractableStateEnum state, int value)
Parameters