Пример #1
0
        public State(String alias,Player p)
        {
            animation = new AnimationSequence(alias);
            player = p;

            //Register the animation
            AnimationSpace.getInstance().addAnimation(animation);

            animation.setPos(new Vector2(200, 50));
            //Intialize the state
            init();
        }
 public void addAnimation(AnimationSequence animation)
 {
     list.Add(animation);
 }