C# Class CellControl, Hero.Coli

Inheritance: MonoBehaviour
Datei anzeigen Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
absoluteWASDButton AbsoluteWASDButton,
baseMoveSpeed float
clickFeedback GameObject
currentMoveSpeed float
gameObjectName string
hero Hero,
leftClickToMoveButton LeftClickToMoveButton,
moveEnergyCost float
relativeRotationSpeed float
relativeWASDButton RelativeWASDButton,
rightClickToMoveButton RightClickToMoveButton,
selectedKeyboardControlTypeSprite UISprite,
selectedMouseControlTypeSprite UISprite,
wallname string

Private Properties

Property Type Description
AbsoluteWASDUpdate void
Awake void
OnCollisionStay void
RelativeWASDUpdate void
cancelMouseMove void
clickToMoveUpdate void
commonUpdate void
initializeIfNecessary void
rotationUpdate void
setClickFeedback void
setSpeed void
switchControlTypeTo void
switchControlTypeTo void
updateEnergy void

Public Methods

Method Description
Pause ( bool pause ) : void
get ( ) : CellControl,
isPaused ( ) : bool
refreshControlType ( ) : void
reset ( ) : void
stopMovement ( ) : void
switchControlTypeToAbsoluteWASD ( ) : void
switchControlTypeToLeftClickToMove ( ) : void
switchControlTypeToRelativeWASD ( ) : void
switchControlTypeToRightClickToMove ( ) : void
teleport ( Vector3 position ) : void
teleport ( Vector3 position, Quaternion rotation ) : void

Private Methods

Method Description
AbsoluteWASDUpdate ( ) : void
Awake ( ) : void
OnCollisionStay ( Collision col ) : void
RelativeWASDUpdate ( ) : void
cancelMouseMove ( ) : void
clickToMoveUpdate ( KeyCode, mouseButtonCode ) : void
commonUpdate ( ) : void
initializeIfNecessary ( ) : void
rotationUpdate ( ) : void
setClickFeedback ( Vector3 position ) : void
setSpeed ( ) : void
switchControlTypeTo ( ControlType newControlType ) : void
switchControlTypeTo ( ControlType newControlType, Vector3 position ) : void
updateEnergy ( Vector3 moveAmount ) : void

Method Details

Pause() public method

public Pause ( bool pause ) : void
pause bool
return void

get() public static method

public static get ( ) : CellControl,
return CellControl,

isPaused() public method

public isPaused ( ) : bool
return bool

refreshControlType() public method

public refreshControlType ( ) : void
return void

reset() public method

public reset ( ) : void
return void

stopMovement() public method

public stopMovement ( ) : void
return void

switchControlTypeToAbsoluteWASD() public method

public switchControlTypeToAbsoluteWASD ( ) : void
return void

switchControlTypeToLeftClickToMove() public method

public switchControlTypeToLeftClickToMove ( ) : void
return void

switchControlTypeToRelativeWASD() public method

public switchControlTypeToRelativeWASD ( ) : void
return void

switchControlTypeToRightClickToMove() public method

public switchControlTypeToRightClickToMove ( ) : void
return void

teleport() public method

public teleport ( Vector3 position ) : void
position Vector3
return void

teleport() public method

public teleport ( Vector3 position, Quaternion rotation ) : void
position Vector3
rotation Quaternion
return void

Property Details

absoluteWASDButton public_oe property

public AbsoluteWASDButton, absoluteWASDButton
return AbsoluteWASDButton,

baseMoveSpeed public_oe property

public float baseMoveSpeed
return float

clickFeedback public_oe property

public GameObject clickFeedback
return GameObject

currentMoveSpeed public_oe property

public float currentMoveSpeed
return float

gameObjectName public_oe static_oe property

public static string gameObjectName
return string

hero public_oe property

public Hero, hero
return Hero,

leftClickToMoveButton public_oe property

public LeftClickToMoveButton, leftClickToMoveButton
return LeftClickToMoveButton,

moveEnergyCost public_oe property

public float moveEnergyCost
return float

relativeRotationSpeed public_oe property

public float relativeRotationSpeed
return float

relativeWASDButton public_oe property

public RelativeWASDButton, relativeWASDButton
return RelativeWASDButton,

rightClickToMoveButton public_oe property

public RightClickToMoveButton, rightClickToMoveButton
return RightClickToMoveButton,

selectedKeyboardControlTypeSprite public_oe property

public UISprite, selectedKeyboardControlTypeSprite
return UISprite,

selectedMouseControlTypeSprite public_oe property

public UISprite, selectedMouseControlTypeSprite
return UISprite,

wallname public_oe property

public string wallname
return string