Example #1
0
 private void OnRollbackLevelChanged(int oldLevel, int newLevel, ManagerEfficiencyRollbackLevel level)
 {
     if (IsLoaded)
     {
         States.ForEach(s => s.OnRollbackLevelChanged(oldLevel, newLevel, level));
     }
 }
Example #2
0
 public override void OnEfficiencyLevelChanged(int oldLevel, int newLevel, ManagerEfficiencyRollbackLevel level)
 {
     base.OnEfficiencyLevelChanged(oldLevel, newLevel, level);
     if (IsActive)
     {
         RemoveFinger(services, efficiencyFingerPosition);
         services.TutorialService.RemoveHighlightRegion();
         SetStage(END_DIALOG, 0.7f);
     }
 }
Example #3
0
 public override void OnRollbackLevelChanged(int oldLevel, int newLevel, ManagerEfficiencyRollbackLevel level)
 {
     base.OnRollbackLevelChanged(oldLevel, newLevel, level);
     if (Stage == FINGER_ON_UPGRADE_ROLLBACK_BUTTON)
     {
         RemoveFinger(services, rollbackFingerPosition);
         services.TutorialService.RemoveHighlightRegion();
         SetStage(FINGER_ON_UPGRADE_EFFICIENCY_BUTTON);
     }
 }
Example #4
0
 public ManagerEfficiencyRollbackLevel GetManagerEfficiencyRollbackLevel(int managerId)
 {
     if (ManagerEfficiencyRollbackLevels.ContainsKey(managerId))
     {
         return(ManagerEfficiencyRollbackLevels[managerId]);
     }
     else
     {
         ManagerEfficiencyRollbackLevel level = new ManagerEfficiencyRollbackLevel(managerId);
         ManagerEfficiencyRollbackLevels.Add(managerId, level);
         return(level);
     }
 }
Example #5
0
 public static void OnMegaImproveChanged(bool isMega, ManagerEfficiencyRollbackLevel manager)
 => ManagerMegaChanged?.Invoke(isMega, manager);
Example #6
0
 public static void OnRollbackImproveLevelChanged(int oldLevel, int newLevel, ManagerEfficiencyRollbackLevel manager)
 => RollbackLevelChanged?.Invoke(oldLevel, newLevel, manager);
Example #7
0
 public virtual void OnEfficiencyLevelChanged(int oldLevel, int newLevel, ManagerEfficiencyRollbackLevel level)
 {
 }