Esempio n. 1
0
        private bool ApplyParamBust()
        {
#if DEBUG
            BreastPhysicsController.Logger.LogDebug("Call ApplyParamBust");
#endif

            DynamicBone_Ver02 breastL = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastL);
            if (breastL != null)
            {
#if DEBUG
                BreastPhysicsController.Logger.LogDebug("ApplyParamBust to BrestL");
#endif
                if (!CharaParamControl.ApplyParamBust(GetParamBustCustomNow(), breastL))
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }

            DynamicBone_Ver02 breastR = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastR);
            if (breastR != null)
            {
#if DEBUG
                BreastPhysicsController.Logger.LogDebug("ApplyParamBust to BrestR");
                BreastPhysicsController.Logger.LogDebug(GetParamBustCustomNow().ToString());
#endif
                if (!CharaParamControl.ApplyParamBust(GetParamBustCustomNow(), breastR))
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
#if DEBUG
            BreastPhysicsController.Logger.LogDebug("Success ApplyParamBust");
#endif
            ChaControl.ReSetupDynamicBoneBust();

            return(true);
        }
        public bool RestoreBust(ChaControl control)
        {
#if DEBUG
            BreastPhysicsController.Logger.LogDebug("Call RestoreBust");
#endif
            if (!backupedBust)
            {
                return(false);
            }

            DynamicBone_Ver02 breastL = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastL);
            DynamicBone_Ver02 breastR = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastR);

            CharaParamControl.ApplyParamBust(bust, breastL);
            CharaParamControl.ApplyParamBust(bust, breastR);

            backupedBust = false;
            bust.Clear();

            return(true);
        }