CannonGame.menuSplash.menuSplash C# (CSharp) Метод

menuSplash() публичный Метод

public menuSplash ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, String backTexture, string button1Texture, string button2Texture, string button3Texture, string button4Texture, int gameStateIndex ) : System
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
backTexture String
button1Texture string
button2Texture string
button3Texture string
button4Texture string
gameStateIndex int
Результат System
        public menuSplash(SpriteBatch spriteBatch, ContentManager content, String backTexture, 
            string button1Texture, string button2Texture, string button3Texture, string button4Texture, int gameStateIndex)
            : base(spriteBatch, content, backTexture, gameStateIndex)
        {
            button1 = new Rectangle(180, 400, 120, 50);
            this.button1Texture = content.Load<Texture2D>(button1Texture);
            button2 = new Rectangle(180, 470, 120, 50);
            this.button2Texture = content.Load<Texture2D>(button2Texture);
            button3 = new Rectangle(180, 540, 120, 50);
            this.button3Texture = content.Load<Texture2D>(button3Texture);
            button4 = new Rectangle(180, 610, 120, 50);
            this.button4Texture = content.Load<Texture2D>(button4Texture);
        }