C# Class WeaponSystem, Unity3D-Space-Shooter-Game

Inheritance: GenericSystem
Show file Open project: emir01/Unity3D-Space-Shooter-Game Class Usage Examples

Public Properties

Property Type Description
DefaultWeapon GameObject
LoadedAmmo GameObject

Public Methods

Method Description
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
ChangeWeapon ( string weaponName ) : void
FireWeaponSystem ( ) : IEnumerator

The actual method that handles the shooting of the currently selected weapon with the currently selected ammo

HandleWeaponSwitch ( ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

DefaultWeapon public property

public GameObject DefaultWeapon
return GameObject

LoadedAmmo public property

public GameObject LoadedAmmo
return GameObject