Ejemplo n.º 1
0
    public void selectWeap(ShopWeaponList page)
    {
        Color tempcol;

        for (int i = 0; i < WeapList.Count; ++i)
        {
            if (page.getWeapWifIndex() == WeapList[i])
            {
                currentWeapon                  = page.getWeapWifIndex();
                currentWeaponIndex             = i;
                tempcol                        = WeapList[i].button.image.color;
                tempcol.a                      = 1;
                WeapList[i].button.image.color = tempcol;

                MultipurposeButton.image.enabled = true;

                runUpdateSlider = false;
                updateSlider();

                updateInfo();
            }
            else
            {
                tempcol   = WeapList[i].button.image.color;
                tempcol.a = 0.4f;
                WeapList[i].button.image.color = tempcol;
            }
        }
    }
Ejemplo n.º 2
0
	public void selectWeap (ShopWeaponList page) {
		Color tempcol;
		for (int i = 0; i < WeapList.Count; ++i) {
			if(page.getWeapWifIndex() == WeapList[i]) {
				currentWeapon = page.getWeapWifIndex();
				currentWeaponIndex = i;
				tempcol = WeapList[i].button.image.color;
				tempcol.a = 1;
				WeapList[i].button.image.color = tempcol;

				MultipurposeButton.image.enabled = true;

				runUpdateSlider = false;
				updateSlider();

				updateInfo ();
			} else {
				tempcol = WeapList[i].button.image.color;
				tempcol.a = 0.4f;
				WeapList[i].button.image.color = tempcol;
			}
		}
	}