Beispiel #1
0
        void itemImgSetter(int val, string imgPath)
        {
            switch (val)
            {
            case 0:
                Gun1.Load(imgPath);
                break;

            case 1:
                Gun2.Load(imgPath);
                break;

            case 2:
                Gun3.Load(imgPath);
                break;

            case 3:
                Head.Load(imgPath);
                break;

            case 4:
                Arms.Load(imgPath);
                break;

            case 5:
                Chest.Load(imgPath);
                break;

            case 6:
                Legs.Load(imgPath);
                break;

            case 7:
                ClassArmour.Load(imgPath);
                break;

            case 8:
                Ghost.Load(imgPath);
                break;

            case 9:
                Sparrow.Load(imgPath);
                break;

            case 10:
                Ship.Load(imgPath);
                break;

            case 11:
                SubClass.Load(imgPath);
                break;

            case 13:
                Embelm.Load(imgPath);
                break;
            }
        }