ORK Framework  2.22.0
API Documentation
ORKFramework.PlayerControlSettings Class Reference
Inheritance diagram for ORKFramework.PlayerControlSettings:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
bool IsButtonControl ()
 
bool IsMouseControl ()
 
void AddPlayerControl (GameObject player)
 
void RemovePlayerControl (GameObject player)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

PlayerControlType type = PlayerControlType.Button
 
bool sceneChangeDestroyPlayer = false
 
bool moveDead = true
 
bool useSpeed = true
 
float runSpeed = 8.0f
 
float gravity = Physics.gravity.y
 
float speedSmoothing = 10.0f
 
ButtonPlayerControlSettings buttonController = new ButtonPlayerControlSettings()
 
MousePlayerControlSettings mouseController = new MousePlayerControlSettings()
 

Member Function Documentation

override void ORKFramework.PlayerControlSettings.SetData ( DataObject  data)
virtual

Sets the variables of the class using a ORKFramework.DataObject.

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.