コード例 #1
0
 public static void RemoveGoal(GOALS goal)
 {
     switch(goal) {
         case GOALS.ED:
             instance.goalEd = false;
             instance.SetHelpText();
             break;
         case GOALS.EMMA:
             instance.goalEmma = false;
             instance.SetHelpText();
             break;
         case GOALS.CHRIS:
             instance.enabled = false;
             break;
     }
 }
コード例 #2
0
        //(Generic) Allow the player to guess one player's goal
        protected virtual int GuessGoal(Player player)
        {
            int guess = GOALS[RANDOM.Next(GOALS.Count())];

            return(guess);
        }
コード例 #3
0
 public static void ShowGoal(GOALS goal)
 {
     switch(goal) {
         case GOALS.ED:
             instance.goalEd = true;
             instance.SetHelpText();
             break;
         case GOALS.EMMA:
             instance.goalEmma = true;
             instance.SetHelpText();
             break;
         case GOALS.CHRIS:
             instance.goalChris = true;
             instance.SetHelpText();
             break;
     }
     instance.Notify();
 }