C# Class ProjectStorms.BroadsideWeaponsController

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
portCannons List
shuntingForce float
starboardCannons List

Private Properties

Property Type Description
ApplyShunt void
FireCannons void
Start void
Update void

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
PlayerInputs ( bool a_leftBumper, bool a_rightBumper ) : void

Helper function, to pass current state of player's input into this component

Private Methods

Method Description
ApplyShunt ( Vector3 a_direction ) : void

Applies a shunt to the player's ship in a given direction

FireCannons ( bool a_fireStarboard ) : void

Fire a set of boardside cannons

Start ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

PlayerInputs() public method

Helper function, to pass current state of player's input into this component
public PlayerInputs ( bool a_leftBumper, bool a_rightBumper ) : void
a_leftBumper bool Current state of left bumper for this player
a_rightBumper bool Current state of right bumper for this player
return void

Property Details

portCannons public_oe property

public List portCannons
return List

shuntingForce public_oe property

public float shuntingForce
return float

starboardCannons public_oe property

public List starboardCannons
return List