/// <summary> /// Перегруженный конструктор класса /// </summary> /// <param name="sb">SB</param> /// <param name="playerTexture">Текстура игрока</param> /// <param name="frameSettings">Информация о фрейме</param> public Player(Texture2D idlTexture, Texture2D runTextureVert, Texture2D runTextureGoriz, FrameInfo frameInfo, Game1 game) { Init(); this.idlTexture = idlTexture; this.runTextureVert = runTextureVert; this.runTextureGoriz = runTextureGoriz; this.frameInfo = frameInfo; this.game = game; }
/// <summary> /// Перегруженный конструктор класса /// </summary> /// <param name="sb">SB</param> /// <param name="playerTexture">Текстура игрока</param> /// <param name="frameSettings">Информация о фрейме</param> public Player(Texture2D idlTexture, Texture2D runTexture, FrameInfo frameInfo, Game1 game) { Init(); this.idlTexture = idlTexture; this.runTexture = runTexture; this.frameInfo = frameInfo; this.game = game; }