public Sprite() { // Todo : This should not be necessary. if (ObjectFactory.IsObjectFactoryInitialized) { _spriteContext = ObjectFactory.Instance.Get<ISpriteContext>(); } }
protected override void Initialize() { // Todo : This should not be necessary. if (null == _spriteContext) { _spriteContext = ObjectFactory.Instance.Get<ISpriteContext>(); } base.Initialize(); }
public Sprite(IAssetLoaderService assetLoaderService, ISpriteContext spriteContext) { _assetLoaderService = assetLoaderService; _spriteContext = spriteContext; }
public SpriteLogic(ISpriteContext context) { this.context = context; }