public MouseCursor(Game game, string spriteFrameNameNormal, string spriteFrameNameClick) : base(game, spriteFrameNameNormal) { spriteFrameNormal = Core.GetSpriteFrame(spriteFrameNameNormal); spriteFrameClick = Core.GetSpriteFrame(spriteFrameNameClick); }
/// <summary> /// Add sprite frame to cache. /// </summary> /// <param name="spriteFrame"></param> public void AddSpriteFrame(SpriteFrame spriteFrame) { cache.Add(spriteFrame); }