public PowerAnimation configStart(string id, bool isTriggeredExternaly)
 {
     currentConfigAnimation = ensureAnimation(id);
     currentConfigAnimation._isTriggeredExternaly = isTriggeredExternaly;
     currentConfigAnimation.clear();
     return(currentConfigAnimation);
 }
 public PowerAnimation ensureAnimation(string id)
 {
     if (!animations.TryGetValue(id, out PowerAnimation result))
     {
         result = new PowerAnimation();
         animations.Add(id, result);
     }
     return(result);
 }
 public void setPinAnim(string pin, PowerAnimation anim)
 {
     (_pins[pin] as PinPower).anim = anim;
 }