C# Class FireCtrl, S_Shooter01

Inheritance: MonoBehaviour
Show file Open project: kwbt-mrokj/S_Shooter01 Class Usage Examples

Public Properties

Property Type Description
_renderer UnityEngine.MeshRenderer
bullet GameObject
firePos Transform
fireSfx UnityEngine.AudioClip

Public Methods

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

Private Methods

Method Description
CreateBullet ( ) : IEnumerator
PlaySfx ( AudioClip _clip ) : IEnumerator
ShowMuzzleFlash ( ) : IEnumerator

Method Details

Fire() public method

public Fire ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

_renderer public property

public MeshRenderer,UnityEngine _renderer
return UnityEngine.MeshRenderer

bullet public property

public GameObject bullet
return GameObject

firePos public property

public Transform firePos
return Transform

fireSfx public property

public AudioClip,UnityEngine fireSfx
return UnityEngine.AudioClip