Пример #1
0
 private void HandleSelection(OptionButtonFrame group, int selected)
 {
     if (group == this.group)
     {
         frame.enabled = selected == value;
     }
 }
Пример #2
0
        private void HandleNewWeaponSelect(OptionButtonFrame group, int selected)
        {
            if (group != this.group)
            {
                return;
            }

            keepCurrent = selected == 0;
            WeaponStats selectedWeapon;

            if (keepCurrent)
            {
                selectedWeapon = currentWeapon;
            }
            else
            {
                selectedWeapon = optionalWeapon;
            }

            weaponsClipSize.Value    = selectedWeapon.clipSize;
            weaponsClipSize.MaxValue = selectedWeapon.clipSize;

            weaponsPrecision.Value    = selectedWeapon.precision;
            weaponsPrecision.MaxValue = selectedWeapon.precision;

            //Debug.Log("Crit " + selectedWeapon.critChance + " Precision " + selectedWeapon.precision + " Clip " + selectedWeapon.clipSize);
            weaponsCritChance.Value    = selectedWeapon.critChance;
            weaponsCritChance.MaxValue = selectedWeapon.critChance;
        }
Пример #3
0
 private void HandleNewSpriteSelect(OptionButtonFrame group, int selected)
 {
     if (group == spriteGroup)
     {
         selectedSprite = selected;
     }
 }