private void SetState(GeneratorButtonState newState, bool isForceEvent = false)
 {
     UpdateButtonText(newState);
     if (State != newState || isForceEvent)
     {
         State = newState;
         GameEvents.OnGeneratorButtonStateChanged(GeneratorId, GetBuyInfo());
     }
     if (Generator != null)
     {
         Generator.SetBuyCountButtonState((int)State);
     }
 }
 private void UpdateButtonText(GeneratorButtonState state)
 {
     buttonText.text = "x".Colored("#F1FF00") + buttonStateTexts[state];
 }