public static bool BustSoft_ReCalc_Pre(BustSoft __instance) { ParamCharaController controller = DBControllerManager.GetControllerByBustSoft(__instance); if (controller != null && controller.Enabled && controller.isEnabledNowBust()) { return(false); } return(true); }
public static ParamCharaController GetControllerByBustSoft(BustSoft bustSoft) { foreach (ParamCharaController controller in _controllers.Values) { if (ReferenceEquals(controller.ChaControl.bustSoft, bustSoft)) { return(controller); } } return(null); }