public bool AbilityUnLock(CabinTechEffectType techType) { foreach (CabinTechTreeNode node in this._itemList) { if ((node._status == TechTreeNodeStatus.Active) && (node._metaData.AbilityType == techType)) { return(true); } } return(false); }
public int GetAbilitySum(CabinTechEffectType techType, int index) { int num = 0; foreach (CabinTechTreeNode node in this._itemList) { if ((node._status == TechTreeNodeStatus.Active) && (node._metaData.AbilityType == techType)) { int num2 = 0; if (index == 1) { num2 = Mathf.FloorToInt((float)node._metaData.Argument1); } else if (index == 2) { num2 = Mathf.FloorToInt((float)node._metaData.Argument2); } num += num2; } } return(num); }