void OnCollisionEnter(Collision other) { if (other.gameObject.CompareTag("BlueFaction")) { ; } BlueFaction.TakeDamage(damage); }
IEnumerator DamageBlue() { yield return(new WaitForSeconds(1)); BlueFaction.TakeDamage(damage); }