コード例 #1
0
        void InitGame(int mode, bool ispvp = false)
        {
            Init(mode, _renderer);

            if (ispvp == false)
            {
                if (mode == 1)
                {
                    User.Color = eTeam.White;
                }
                else
                {
                    User.Color = eTeam.Black;
                }
            }

            if (User.Color == eTeam.Black)
            {
                _renderer.UpdateTurnBackground(eTeam.Black);

                if (ispvp == true)
                {
                    NetProcess.SendPassThroughMessage(x - 1, y - 1, User.Color);
                }
            }
            else
            {
                _renderer.UpdateTurnBackground(eTeam.White);
            }
        }
コード例 #2
0
 public void RefreshTurnInfo(eTeam team)
 {
     _renderer.UpdateTurnBackground(team);
     _renderer.UpdateAim();
 }