C# 클래스 WeaponBase, Unity3D-Space-Shooter-Game

상속: MonoBehaviour
파일 보기 프로젝트 열기: emir01/Unity3D-Space-Shooter-Game 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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