示例#1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            Actor guy = EntityManager.GetEntity <Actor>("Guy");

            if (Keyboard.GetState().IsKeyDown(Keys.Left))
            {
                Bullet.AddBehavior(guy);
            }

            if (guy.Position.X < 0)
            {
                this.Hide();
                SceneManager.GetScene("Scene2").Show();
            }
        }