private void _InstanceOnFeatureToggle(FishEnvironment.EXCLUSIVE_FEATURE current, FishEnvironment.EXCLUSIVE_FEATURE previous) { foreach (var i in Items) { _FeatureToggle(i.Target, current, i.Feature); } }
private void _FeatureToggle(GameObject ui, FishEnvironment.EXCLUSIVE_FEATURE current, FishEnvironment.EXCLUSIVE_FEATURE self) { ui.SetActive(current == self); }