// 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 }
public void SetDelegates() { if (_scarabType == ScarabType.Reroll) { onDieSelect = Reroll; this.name = "Scarab Reroll"; } else { onDieSelect = AddPip; this.name = "Scarab AddPip"; } }
public void AskToChooseCancel(PlayerGameState.delOnDieSelect del) { pgs.OnDieCancel = del; UIState.EnableCancelButton(); }
public void AskToChooseDone(PlayerGameState.delOnDieSelect del) { pgs.OnDieDone = del; UIState.EnableDoneButton(); }
public void Awake() { onDieSelect = null; }