public float GetFighterFirePower() { float value = 0; foreach (string fighterName in Fighters) { FighterDefinition fighterDefinition = ResourceManager.instance.GetFighterDefinition(fighterName); if (fighterDefinition != null) { value += fighterDefinition.GetSquadronFirePower(); } } foreach (string fighterName in HeavyFighters) { FighterDefinition fighterDefinition = ResourceManager.instance.GetFighterDefinition(fighterName); if (fighterDefinition != null) { value += fighterDefinition.GetSquadronFirePower(); } } return(value); }