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

Inheritance: MonoBehaviour
Afficher le fichier Open project: emir01/Unity3D-Space-Shooter-Game Class Usage Examples

Méthodes publiques

Свойство Type Description
AmmoDamageModifier float
AmmoSpeedModifier float
RateOfFire float

Méthodes publiques

Méthode Description
Fire ( GameObject ammo, GameObject origin ) : void

Inherited from the concrete Weapon types.

Méthodes protégées

Méthode Description
ModifyAmmo ( GameObject ammo ) : void

The method that is responsible to modifying the ammo based on the ammo modifiers after the ammo is instantiated.

Method Details

Fire() public abstract méthode

Inherited from the concrete Weapon types.
public abstract Fire ( GameObject ammo, GameObject origin ) : void
ammo GameObject The ammo we are firing that could affect the rate of fire.
origin GameObject The origin we are firing from. (Player Ship)
Résultat void

ModifyAmmo() protected méthode

The method that is responsible to modifying the ammo based on the ammo modifiers after the ammo is instantiated.
protected ModifyAmmo ( GameObject ammo ) : void
ammo GameObject
Résultat void

Property Details

AmmoDamageModifier public_oe property

The modifier for the ammo damage.
public float AmmoDamageModifier
Résultat float

AmmoSpeedModifier public_oe property

The modifier for the ammo speed
public float AmmoSpeedModifier
Résultat float

RateOfFire public_oe property

The base weapon speed rate in seconds.
public float RateOfFire
Résultat float