Esempio n. 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;
            }
        }
Esempio n. 2
0
 void Update()
 {
     if (Input.GetKeyDown("1"))
     {
         Gun1.SetActive(true);
         Gun2.SetActive(false);
     }
     if (Input.GetKeyDown("2"))
     {
         Gun1.SetActive(false);
         Gun2.SetActive(true);
     }
 }
Esempio n. 3
0
 void Start()
 {
     Gun1.SetActive(true);
     Gun2.SetActive(false);
 }