示例#1
0
        public override void Update(GameTime gameTime, GameEngine.TeeEngine engine)
        {
            if (CurrentDrawableState.Contains("Spin"))
            {
            }

            base.Update(gameTime, engine);
        }
示例#2
0
        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);
        }
示例#3
0
        public override void PostDestroy(GameTime gameTime, GameEngine.TeeEngine engine)
        {
            LightShader lightShader = (LightShader)engine.GetPostGameShader("LightShader");

            lightShader.LightSources.Remove(this);
        }