C# Class WeaponScript, ProjetUnity

Inheritance: MonoBehaviour
Mostrar archivo Open project: MartinsDavid/ProjetUnity Class Usage Examples

Public Properties

Property Type Description
projectileSound AudioClip
shootingRate float
shotPrefab Transform

Public Methods

Method Description
Attack ( bool isEnemy ) : void

Create a new projectile if possible

Start ( ) : void
Update ( ) : void

Method Details

Attack() public method

Create a new projectile if possible
public Attack ( bool isEnemy ) : void
isEnemy bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

projectileSound public_oe property

public AudioClip projectileSound
return AudioClip

shootingRate public_oe property

public float shootingRate
return float

shotPrefab public_oe property

public Transform shotPrefab
return Transform