Exemplo n.º 1
0
 void CmdEatPlayer(GameObject target)
 {
     gameSceneManager.RpcUpdateLogText(playerName + " 想咬: " + target.GetComponent <Player>().playerName + "\n", PlayerIdentity.Werewolves);
     target.GetComponent <Player>().eatCount += 1;
     gameSceneManager.cmdEatPlayerCount      += 1;
     if (!gameSceneManager.toBeEatenPlayerGameObjects.Contains(target))
     {
         gameSceneManager.toBeEatenPlayerGameObjects.Add(target);
     }
     gameSceneManager.FinishAllPlayersEat();
 }