public Scene1(Game game) { TestTimer = new Timer(); TestTimer.Fire += new NotifyHandler(TestTimer_Fire); Actor guy = new Actor(this, game.Content.Load<Texture2D>("player"), new Vector2(10, 0), 1); guy.PositionChange += new NotifyHandler(guy_PositionChange); EntityManager.AddEntity("Guy", guy); Show(); }
public static void AddBehavior(Actor actor) { actor.Behavior = "Bullet"; }