Esempio n. 1
0
 public void Clone(ISArmor armor)
 {
     _armorRating	= armor.ArmorRating;
     _gameObject 	= armor.Prefab;
     _armorType 		= armor.ArmorType;
     _armorLocation  = armor.ArmorLocation;
 }
        void EditArmorLocation()
        {
            if(!_isArmorLocationOldUpdated)
            {
                _tempArmorLocationOld = new ISArmorLocation (_tempArmorLocation);
                _isArmorLocationOldUpdated = true;
            }

            _tempArmorLocation.Name = EditorGUILayout.TextField("Armor Location Name", _tempArmorLocation.Name);
        }
 void ListArmorLocations()
 {
     for(int i = 0; i < _armorLocationDatabase.Count; i++)
     {
         if(GUILayout.Button(_armorLocationDatabase.Get(i).Name, GUILayout.Width(_listViewButtonWidth), GUILayout.Height(_listViewButtonHeight)))
         {
             _selectedIndex = i;
             _tempArmorLocation  = new ISArmorLocation(_armorLocationDatabase.Get(i));
             displayState = DisplayState.DisplayDatabaseEntry;
         }
     }
 }
        void NullTempEntries()
        {
            _tempWeapon 					= null;
            _tempArmor						= null;
            _tempItem						= null;

            _tempQuality					= null;
            _tempQualityOld					= null;

            _tempWeaponType					= null;
            _tempWeaponTypeOld				= null;

            _tempAttackType					= null;
            _tempAttackTypeOld				= null;

            _tempArmorType					= null;
            _tempArmorTypeOld				= null;

            _tempArmorLocation				= null;
            _tempArmorLocationOld			= null;
        }