IEnumerator CheckAlive() { while (checkAlive) { var alive = Server.AmIAlive(); if (!alive) { StartCoroutine(MessagePanel.ShowMessage("You were neutralized")); } yield return(new WaitForSeconds(AliveCheckDelay)); } }