示例#1
0
        public override void Initialize()
        {
            base.Initialize();
            AddFrames("push_missile_frame5");
            Origin     = new Vector2(Frames[0].Width / 2f, 0);
            PluginVect = new Vector2(Frames[0].Width / 2f, Frames[0].Height * 2);
            Plugin     = new Arm2ProtoRight(Game);
            Plugin.Initialize();
//            Game.Components.Add(Plugin);
            Plugin.ReletivePos   = PluginVect + Pos;
            Plugin.ReletiveAngle = AngleInRad;
//            Pos = new Vector2(WidthOfGame / 2, HeightOfGame / 2);
        }
 public override void Initialize()
 {
     base.Initialize();
     AddFrames("push_missile_frame5");
     Origin = new Vector2(Frames[0].Width / 2f, 0);
     PluginVect = new Vector2(Frames[0].Width / 2f, Frames[0].Height*2);
     Plugin = new Arm2ProtoRight(Game);
     Plugin.Initialize();
     //            Game.Components.Add(Plugin);
     Plugin.ReletivePos = PluginVect + Pos;
     Plugin.ReletiveAngle= AngleInRad;
     //            Pos = new Vector2(WidthOfGame / 2, HeightOfGame / 2);
 }