C# Class ProjectStorms.BroadsideWeaponsController

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: patferguson/Storms-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
portCannons List
shuntingForce float
starboardCannons List

Private Properties

Свойство Type Description
ApplyShunt void
FireCannons void
Start void
Update void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Awake ( ) : void
Résultat void

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

PlayerInputs() public méthode

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
Résultat void

Property Details

portCannons public_oe property

public List portCannons
Résultat List

shuntingForce public_oe property

public float shuntingForce
Résultat float

starboardCannons public_oe property

public List starboardCannons
Résultat List