AStateBehaviour Class
Implement this abstract class to define the behaviour of a Comms Radio mode in a given state.
Namespace
CommsRadioAPI
Base Types
  • object
graph BT Type-->Base0["object"] Type["AStateBehaviour"] class Type type-node

Syntax

public abstract class AStateBehaviour

Constructors

Name Summary
AStateBehaviour(CommsRadioState) Instantiate a new action/update handler with the given Comms Radio state.

Fields

Name Field Type Constant Value Summary
state CommsRadioState
The state of the Comms Radio when it exhibits the behaviour described by the implementing class.

Methods

Name Return Value Summary
OnAction(CommsRadioUtility, InputAction) AStateBehaviour
OnEnter(CommsRadioUtility, AStateBehaviour) void
OnLeave(CommsRadioUtility, AStateBehaviour) void
OnUpdate(CommsRadioUtility) AStateBehaviour
This method runs on each cycle of the game loop.
It can be used, for example, to keep track of where the Comms Radio laser is pointing.