Class ObjController
The ObjController class is designed to associate inputs from a specific player to a NavObject, enabling player control over the object's actions and behaviors within the game. This feature ensures that player inputs are correctly mapped to the corresponding NavObject, allowing for precise and responsive control.
Inherited Members
Namespace: Axis.ObjFeatures
Assembly: cs.temp.dll.dll
Syntax
public sealed class ObjController : ObjFeature
Fields
AIWhenNoPlayer
Work In Progress: Auto control when defined player input is not avaliable
Declaration
public bool AIWhenNoPlayer
Field Value
Type | Description |
---|---|
bool |
OnButton
Declaration
public VirtualButtonEvents OnButton
Field Value
Type | Description |
---|---|
VirtualButtonEvents |
PlayerNumber
Player number to connect
Declaration
public ControllerPlayerNumber PlayerNumber
Field Value
Type | Description |
---|---|
ControllerPlayerNumber |
Methods
ButtonDown(VirtualButton)
Sends this controller an Button Down input
Declaration
public void ButtonDown(VirtualButton button)
Parameters
Type | Name | Description |
---|---|---|
VirtualButton | button | VirtualButton to send |
ButtonUp(VirtualButton)
Sends this controller an Button Up input
Declaration
public void ButtonUp(VirtualButton button)
Parameters
Type | Name | Description |
---|---|---|
VirtualButton | button | VirtualButton to send |
InputAxis(Vector2, VirtualButton)
Send this controller a MoveAxis input
Declaration
public void InputAxis(Vector2 vector, VirtualButton v)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | vector | Input value |
VirtualButton | v | VirtualButton defining type of axis |