private void NextPlayer(bool isGood = false) { ++CurPlayer; if (CurPlayer > GameConf.MemCount) { CurPlayer = 1; } UIGame uiGame = UIManager.GetUIByType <UIGame>(); uiGame.SetCurPlayer(CurPlayer); string goodOrNot = isGood ? "GOOD!!!\n" : ""; UIManager.SendMessage(MsgType.OnShowTips, goodOrNot + "下回合: 玩家" + CurPlayer); }
public void Restart() { m_curTargetHex = null; m_singleTargetHex = null; m_mainHex = null; HexManager.Restart(); CurPlayer = 1; Hammer.transform.position = Vector3.one * 100; UIGame gameUI = UIManager.GetUIByType <UIGame>(); gameUI.ShowWheel(false); gameUI.SetCurPlayer(CurPlayer); GameStep = GameStep.SelectingMain; }