C# Class SubmarineControl, TWI_Repo

Inheritance: MonoBehaviour
显示文件 Open project: justcollins/TWI_Repo Class Usage Examples

Public Properties

Property Type Description
DOWN KeyCode,
ENGINE_ON KeyCode,
LEFT KeyCode,
RIGHT KeyCode,
UP KeyCode,
maxThrustValue float
minThrustValue float
thrust float

Public Methods

Method Description
CheckUpDownVelocity ( ) : void
FixedUpdate ( ) : void
MotorVelocityContorl ( ) : void
Update ( ) : void

Private Methods

Method Description
KeyValue ( KeyCode, A, KeyCode, B, float Value, float yValue, float _float, float SmoothTime ) : float

Method Details

CheckUpDownVelocity() public method

public CheckUpDownVelocity ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

MotorVelocityContorl() public method

public MotorVelocityContorl ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

DOWN public_oe property

public KeyCode, DOWN
return KeyCode,

ENGINE_ON public_oe property

public KeyCode, ENGINE_ON
return KeyCode,

LEFT public_oe property

public KeyCode, LEFT
return KeyCode,

RIGHT public_oe property

public KeyCode, RIGHT
return KeyCode,

UP public_oe property

public KeyCode, UP
return KeyCode,

maxThrustValue public_oe property

public float maxThrustValue
return float

minThrustValue public_oe property

public float minThrustValue
return float

thrust public_oe property

public float thrust
return float