Exemple #1
0
 public AnimationManger(animation a, Color c)
 {
     _animation = a;
     scale      = new Vector2(5);
     rot        = 0;
     color      = c;
 }
Exemple #2
0
 public void play(animation a)
 {
     if (a == _animation)
     {
         return;
     }
     timer            = 0;
     _animation.index = 0;
     _animation       = a;
 }