private IEnumerator Respawn(TankManager tank) { tank.Respawn(); tank.EnableInvincible(); float frequency = 0.1f; for (float t = 0f; t < m_InvincibleDuration; t += frequency) { yield return(new WaitForSeconds(frequency)); tank.CycleInvincibleColor(); } tank.DisableInvincible(); }