C# Class SubControl, TWI_Repo

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

Public Properties

Property Type Description
boost float
cPitchMax float
cPitchMin float
exteriorLights GameObject
interiorLights GameObject
isEngineOn bool
maxThrustValue float
pitchMax float
shipRB UnityEngine.Rigidbody
speed float
subRes Submarine_Resources,
thrust float

Public Methods

Method Description
CheckUpDownVelocity ( ) : void
FixedUpdate ( ) : void
MotorVelocityContorl ( ) : void
Start ( ) : void
StrafeMove ( ) : void
Update ( ) : void
getBloodForce ( ) : float
getEngineOn ( ) : bool
getForBack ( ) : bool
getMinThrust ( ) : float
setBloodForce ( float newBlood ) : void
setStrafeLimit ( ) : void
setWorldForce ( Vector3 bloodForce ) : 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

Start() public method

public Start ( ) : void
return void

StrafeMove() public method

public StrafeMove ( ) : void
return void

Update() public method

public Update ( ) : void
return void

getBloodForce() public method

public getBloodForce ( ) : float
return float

getEngineOn() public method

public getEngineOn ( ) : bool
return bool

getForBack() public method

public getForBack ( ) : bool
return bool

getMinThrust() public method

public getMinThrust ( ) : float
return float

setBloodForce() public method

public setBloodForce ( float newBlood ) : void
newBlood float
return void

setStrafeLimit() public method

public setStrafeLimit ( ) : void
return void

setWorldForce() public method

public setWorldForce ( Vector3 bloodForce ) : void
bloodForce Vector3
return void

Property Details

boost public_oe property

public float boost
return float

cPitchMax public_oe property

public float cPitchMax
return float

cPitchMin public_oe property

public float cPitchMin
return float

exteriorLights public_oe property

public GameObject exteriorLights
return GameObject

interiorLights public_oe property

public GameObject interiorLights
return GameObject

isEngineOn public_oe property

public bool isEngineOn
return bool

maxThrustValue public_oe property

public float maxThrustValue
return float

pitchMax public_oe property

public float pitchMax
return float

shipRB public_oe property

public Rigidbody,UnityEngine shipRB
return UnityEngine.Rigidbody

speed public_oe property

public float speed
return float

subRes public_oe property

public Submarine_Resources, subRes
return Submarine_Resources,

thrust public_oe property

public float thrust
return float