void EditAttackType() { if(!_isAttackTypeOldUpdated) { _tempAttackTypeOld = new ISAttackType (_tempAttackType); _isAttackTypeOldUpdated = true; } _tempAttackType.Name = EditorGUILayout.TextField("Attack Type Name", _tempAttackType.Name); }
void ListAttackTypes() { for(int i = 0; i < _attackTypeDatabase.Count; i++) { if(GUILayout.Button(_attackTypeDatabase.Get(i).Name, GUILayout.Width(_listViewButtonWidth), GUILayout.Height(_listViewButtonHeight))) { _selectedIndex = i; _tempAttackType = new ISAttackType(_attackTypeDatabase.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; }