示例#1
0
        public override void LoadContent()
        {
            base.LoadContent();
            tex2DTexture = GSM.Instance.Game.Content.Load<Texture2D>("Art/AISprite");
            recSpritePos = 	new Rectangle((int)(vec2Position.X),
                                          (int)(vec2Position.Y),
                                          tex2DTexture.Width,
                                          tex2DTexture.Height);
            sm = new SM(this, new Bombing());
            strObjectiveName = "Bomb Drop";
示例#2
0
 public override void LoadContent()
 {
     base.LoadContent();
     tex2DTexture = GSM.Instance.Game.Content.Load<Texture2D>("Art/playah");
     recSpritePos = 	new Rectangle((int)(vec2Position.X),
                                   (int)(vec2Position.Y),
                                   tex2DTexture.Width,
                                   tex2DTexture.Height);
     sm = new SM(this, new SeekState());
 }
示例#3
0
 public virtual void EnterState(SM a_FSM)
 {
     machine = a_FSM;
 }
示例#4
0
        public override void EnterState(SM a_FSM)
        {
            base.EnterState (a_FSM);
            machine.controller.Vec2Target = randomDest;