public void SetPriority(SectorColoringType type)
 {
     if (ColoringInfo.SetPriority(type, false))
     {
         _transitionAnimator.Start();
     }
 }
Example #2
0
 public bool SetPriority(SectorColoringType type, bool fast = true)
 {
     if (!CurrentPriority.Contains(type) || CurrentPriority.First() == type)
     {
         return(false);
     }
     PreviousPriority = CurrentPriority;
     CurrentPriority  = new[] { type }.Concat(PreviousPriority.Where(c => c != type)).ToList();
     TransitionValue  = fast ? 1.0f : 0.0f;
     return(true);
 }