///------------------------------------------------------------------------ ///----------------------------------------------------------------------- /// /// <summary> /// Загруза игровых ресурсов /// </summary> /// ///------------------------------------------------------------------------ protected override void LoadContent() { mSpriteBatch = new SpriteBatch(GraphicsDevice); loadTexture("robot_1"); //создаем роботов var robot = new ARobot("robot_1"); mWorld.append(robot); mWorld.append(new APlayer(robot)); }
///-------------------------------------------------------------------- ///-------------------------------------------------------------------- /// /// <summary> /// Установка игрового мира /// </summary> /// ///-------------------------------------------------------------------- public void setWorld(AWorld world) { if (mWorld != null) { mWorld.remove(this); } mWorld = world; mWorld.append(this); }