public IncreaseAdrenaline ( float amount ) : void | ||
amount | float | |
return | void |
IEnumerator NearMiss(GameObject go) { audioMngr.NearMissPlay(); yield return(new WaitForSeconds(.5f)); if (go.GetComponent <Collider>().enabled) { adrenalineController.IncreaseAdrenaline(AdrenalineAwarded); nearMissControl.NearMiss(); } yield return(null); }
private void OnTriggerStay(Collider other) { if (other.tag == "Player") { lastDamage += Time.deltaTime; if (lastDamage >= UpdateFrequency) { lastDamage = 0; adrenalineController.IncreaseAdrenaline(AdrenalineAwarded); nearMissControl.NearMiss(); } } }