private void OnTriggerEnter(Collider other) { gameTimer.ResetTimer(); if (flash != null) { flash.Animate(); } }
public bool Fire() { if (_chambered) { ProjectilePrefab.Fire(Muzzle.position, Muzzle.rotation); Flash.Animate(); _chambered = false; Invoke("Chamber", ReloadTime); return(true); } return(false); }