Beispiel #1
0
 /// <summary>
 /// Add an animation
 /// </summary>
 /// <param name="direction">The direction of the frames</param>
 /// <param name="firstFrame">The first frame</param>
 /// <param name="lastFrame">The last frame</param>
 public void AddAnimation(Direction direction, int firstFrame, int lastFrame) => AnimationsDirections.Add(direction, new AnimationFrames(firstFrame, lastFrame));
Beispiel #2
0
 public void AddAnimation(Direction direction, int firstFrame, int lastFrame)
 {
     AnimationsDirections?.Add(direction, new Animator(firstFrame, lastFrame));
 }