public override void Update(GameTime gameTime, GameEngine.TeeEngine engine) { if (CurrentDrawableState.Contains("Spin")) { } base.Update(gameTime, engine); }
public override void PostInitialize(GameTime gameTime, GameEngine.TeeEngine engine) { // Todo: this should technically NOT be here. this.Pos += new Vector2(Width / 2.0f, Height / 2.0f); LightShader lightShader = (LightShader)engine.GetPostGameShader("LightShader"); lightShader.LightSources.Add(this); }
public override void PostDestroy(GameTime gameTime, GameEngine.TeeEngine engine) { LightShader lightShader = (LightShader)engine.GetPostGameShader("LightShader"); lightShader.LightSources.Remove(this); }