public void SetCurrentPlayer(GameObject obj, PawnColor pawn_col) { if (PlayerSelection.isNetworkedGame) { nm_server.UpdateDiceValue(obj.GetComponent <PlayerMovement>().diceRoll); nm_server.SetPlayerOverNetwork(obj.name); } else { if (canSelectPlayer) { if (currentPlayerTurn == pawn_col) { currentPlayer = obj; obj.GetComponent <PlayerMovement>().MoveCharacter(); EventManager.PlayerSelected(); AudioManager.Instance.PawnMove(true); AudioManager.Instance.ClickPawns(); } canSelectPlayer = false; } } }
public void CmdSetDiceValue(int val) { nm_server.UpdateDiceValue(val); }