Esempio n. 1
0
        private void CreateMissionVoteCmd(MissionResult missionVote)
        {
            VoteMissionCommand command = new VoteMissionCommand(LocalPlayer.Id, missionVote);

            try
            {
                command.ValidateCommand(GameModel);
            }
            catch (BaseException ex)
            {
                if (ex is VoteTypeException)
                {
                    InfoText.text = "You character alignment is Good. You must vote with Succeed!";
                }
                return;
            }
            GameController.AddCommand(command);
        }