C# Class GunController.Gun_Controller

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: JordanStone/ExorcistForHire

Public Properties

Property Type Description
FiredBullet UnityEngine.GameObject
FiredBulletSpawnLocation UnityEngine.GameObject
_ammoCount int
_fireTimer float
_firing bool
_reloadTimer float
_reloading bool
bullet UnityEngine.GameObject
bulletSpawners UnityEngine.GameObject[]
bullets UnityEngine.GameObject[]
fireTime float
gunBarrelAnimator UnityEngine.Animator
gunBodyAnimator UnityEngine.Animator
gunShot UnityEngine.AudioSource
reloadTime float

Public Methods

Method Description
GetBulletCount ( ) : int
setEquipped ( bool isEquipped ) : void

Private Methods

Method Description
DeleteBullets ( ) : void
DoneFiring ( ) : void
DoneReloading ( ) : void
FireBullet ( ) : void
PauseFire ( ) : void
SpawnBullets ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

GetBulletCount() public static method

public static GetBulletCount ( ) : int
return int

setEquipped() public method

public setEquipped ( bool isEquipped ) : void
isEquipped bool
return void

Property Details

FiredBullet public_oe property

public GameObject,UnityEngine FiredBullet
return UnityEngine.GameObject

FiredBulletSpawnLocation public_oe property

public GameObject,UnityEngine FiredBulletSpawnLocation
return UnityEngine.GameObject

_ammoCount public_oe static_oe property

public static int _ammoCount
return int

_fireTimer public_oe property

public float _fireTimer
return float

_firing public_oe property

public bool _firing
return bool

_reloadTimer public_oe property

public float _reloadTimer
return float

_reloading public_oe property

public bool _reloading
return bool

bullet public_oe property

public GameObject,UnityEngine bullet
return UnityEngine.GameObject

bulletSpawners public_oe property

public GameObject[],UnityEngine bulletSpawners
return UnityEngine.GameObject[]

bullets public_oe property

public GameObject[],UnityEngine bullets
return UnityEngine.GameObject[]

fireTime public_oe property

public float fireTime
return float

gunBarrelAnimator public_oe property

public Animator,UnityEngine gunBarrelAnimator
return UnityEngine.Animator

gunBodyAnimator public_oe property

public Animator,UnityEngine gunBodyAnimator
return UnityEngine.Animator

gunShot public_oe property

public AudioSource,UnityEngine gunShot
return UnityEngine.AudioSource

reloadTime public_oe property

public float reloadTime
return float