protected override DrawPosition InitializeEvent(IServiceProvider serviceProvider, GraphicsDevice device, Level.LevelVariables levelVariables, GameManagement.Options options) { elapsedTime = timeThreshold; grayScale = new GrayScale(); grayScale.Initialize(serviceProvider, device, options); grayScale.StartResetEffect(); grayScale.BFactor = 0.5f; grayScale.RFactor = 0.5f; grayScale.GFactor = 0.5f; return GameEvents.DrawPosition.Post; }
public override void Dispose() { grayScale = null; }