private void Awake() { gunTurret = gameObject.GetComponentInChildren <GunTurretAI>(); gunTurret.gun.OnSetFire.AddListener(AAAUpdate); }
private void Awake() { gunTurret = gameObject.GetComponentInChildren <GunTurretAI>(); Networker.AAAUpdate += AAAUpdate; gunTurret.gun.currentAmmo = gunTurret.gun.maxAmmo; }