示例#1
0
 public SpriteAnimation GetAnimation(PlayerUnitAnimationType animationType)
 {
     return(_animations[animationType] == null
         ? throw new ArgumentException("No animation exist for animation type: " + animationType)
         : _animations[animationType]);
 }
示例#2
0
 internal void AddAnimation(PlayerUnitAnimationType animationType, SpriteAnimation animation) => _animations[animationType] = animation;