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