Ejemplo n.º 1
0
 protected override void DownAction()
 {
     if (PressedAnimation != null)
     {
         PressedAnimation.Stop();
         PressedAnimation.Play();
     }
 }
Ejemplo n.º 2
0
 private void RunSwitchAnimation()
 {
     if (SwitchValue)
     {
         SwitchAnimation.Stop();
         SwitchAnimation.Play();
     }
     else
     {
         SwitchAnimation.Stop();
         SwitchAnimation.Reverse();
     }
 }
Ejemplo n.º 3
0
 protected override void UpAction()
 {
     if (ReleasedAnimation != null)
     {
         ReleasedAnimation.Stop();
         ReleasedAnimation.Play();
     }
     else if (PressedAnimation != null)
     {
         PressedAnimation.Stop();
         PressedAnimation.Reverse();
     }
 }