コード例 #1
0
 void OnDeletePlayer(RPC.DeletePlayerPayload payload)
 {
     if (otherPlayerObjs.ContainsKey(payload.Id))
     {
         Destroy(otherPlayerObjs[payload.Id]);
         otherPlayerObjs.Remove(payload.Id);
     }
     else if (payload.Id == playerId)
     {
         Destroy(playerObj);
         Invoke("RestartGame", 3);
     }
 }
コード例 #2
0
 public DeletePlayer(DeletePlayerPayload payload)
 {
     this.Payload = payload;
 }