C# Класс WeaponBase, Unity3D-Space-Shooter-Game

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AmmoDamageModifier float
AmmoSpeedModifier float
RateOfFire float

Открытые методы

Метод Описание
Fire ( GameObject ammo, GameObject origin ) : void

Inherited from the concrete Weapon types.

Защищенные методы

Метод Описание
ModifyAmmo ( GameObject ammo ) : void

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

Описание методов

Fire() публичный абстрактный Метод

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)
Результат void

ModifyAmmo() защищенный Метод

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
Результат void

Описание свойств

AmmoDamageModifier публичное свойство

The modifier for the ammo damage.
public float AmmoDamageModifier
Результат float

AmmoSpeedModifier публичное свойство

The modifier for the ammo speed
public float AmmoSpeedModifier
Результат float

RateOfFire публичное свойство

The base weapon speed rate in seconds.
public float RateOfFire
Результат float