Example #1
0
 private IEnumerator SendPlayerLocation()
 {
     while (IsGameRunning)
     {
         if (LocalPlayer != null && LocalPlayer.location != null)
         {
             Ws.SendLocation(LocalPlayer.location);
         }
         yield return(new WaitForSeconds(1));            //todo tweak
     }
 }