protected override void DownAction() { if (PressedAnimation != null) { PressedAnimation.Stop(); PressedAnimation.Play(); } }
private void RunSwitchAnimation() { if (SwitchValue) { SwitchAnimation.Stop(); SwitchAnimation.Play(); } else { SwitchAnimation.Stop(); SwitchAnimation.Reverse(); } }
protected override void UpAction() { if (ReleasedAnimation != null) { ReleasedAnimation.Stop(); ReleasedAnimation.Play(); } else if (PressedAnimation != null) { PressedAnimation.Stop(); PressedAnimation.Reverse(); } }