Example #1
0
 //  the UI is asking the player to choose a die for some reason
 public void AskToChooseDie(PlayerGameState.delOnDieSelect del, string reason)
 {
     GameState.Message(this.name + " please choose a die for " + reason);
     if (del == null)
     {
         Debug.LogError("No delegate was defined, so selecting a die will do nothing.");
     }
     pgs.SetState(PlayerGameState.PlayerGameStates.WaitingToSelectDie);
     pgs.OnDieSelect = del;  //  set the delegate
 }
Example #2
0
 public void SetDelegates()
 {
     if (_scarabType == ScarabType.Reroll)
     {
         onDieSelect = Reroll;
         this.name   = "Scarab Reroll";
     }
     else
     {
         onDieSelect = AddPip;
         this.name   = "Scarab AddPip";
     }
 }
Example #3
0
 public void AskToChooseCancel(PlayerGameState.delOnDieSelect del)
 {
     pgs.OnDieCancel = del;
     UIState.EnableCancelButton();
 }
Example #4
0
 public void AskToChooseDone(PlayerGameState.delOnDieSelect del)
 {
     pgs.OnDieDone = del;
     UIState.EnableDoneButton();
 }
Example #5
0
 public void SetDelegates()
 {
     if (_scarabType == ScarabType.Reroll)
     {
         onDieSelect = Reroll;
         this.name = "Scarab Reroll";
     }
     else
     {
         onDieSelect = AddPip;
         this.name = "Scarab AddPip";
     }
 }
Example #6
0
 public void Awake()
 {
     onDieSelect = null;
 }
Example #7
0
 public void Awake()
 {
     onDieSelect = null;
 }