Exemple #1
0
        protected override void OnReload(GameMode currentGameMode)
        {
#if DEBUG
            BreastPhysicsController.Logger.LogDebug("Call OnReload");
#endif
            if (ChaControl.sex == 1 && HaveDynamicbone()) //Female and HighPoly
            {
                //Restore params from backup.
                if (paramBackup != null)
                {
                    if (paramBackup.backupedBust || paramBackup.backupedHip)
                    {
                        if (paramBackup.backupedBust)
                        {
                            paramBackup.RestoreBust(ChaControl);
                        }
                        if (paramBackup.backupedHip)
                        {
                            paramBackup.RestoreHip(ChaControl);
                        }
                        ChaControl?.ReSetupDynamicBoneBust();
                    }
                }

                //Initialize fields
                Init();
            }
            else //Male or LowPoly
            {
                paramCustom = null;
                paramBackup = null;
            }
        }
Exemple #2
0
 private void Init()
 {
     controllerID = this.GetInstanceID();
     DBControllerManager.AddController(this);
     paramCustom = new ParamChara();
     paramBackup = new ParamBackup();
     Enabled     = false;
     changedControllerEnabled = false;
     changedInfo = new ParamChangedInfo();
     endInitLoad = false;
 }