Ejemplo n.º 1
0
 public DeepFreeze()
 {
     Utilities.Log("DeepFreeze Constructor");
     Instance             = this;
     APIReady             = false;
     DFsettings           = new DFSettings();
     DFgameSettings       = new DFGameSettings();
     globalConfigFilename = Path.Combine(_AssemblyFolder, "PluginData/Config.cfg").Replace("\\", "/");
     Utilities.Log("globalConfigFilename = " + globalConfigFilename);
     DeepFreezeEventAdd();
 }
Ejemplo n.º 2
0
 public DeepFreeze()
 {
     Utilities.Log("DeepFreeze Constructor");
     Instance = this;
     APIReady = false;
     DFsettings = new DFSettings();
     DFgameSettings = new DFGameSettings();
     globalConfigFilename = Path.Combine(_AssemblyFolder, "PluginData/Config.cfg").Replace("\\", "/");
     Utilities.Log("globalConfigFilename = " + globalConfigFilename);
     DeepFreezeEventAdd();
 }
Ejemplo n.º 3
0
 protected void OnDestroy()
 {
     Utilities.Log("OnDestroy");
     Instance = null;
     APIReady = false;
     foreach (Component child in children)
     {
         Utilities.Log("DeepFreeze Child Destroy for " + child.name);
         Destroy(child);
     }
     children.Clear();
     DeepFreezeEventRem();
     GameEvents.onGameSceneLoadRequested.Remove(OnGameSceneLoadRequested);
     GameEvents.OnGameSettingsApplied.Remove(ApplySettings);
 }
Ejemplo n.º 4
0
 protected void OnDestroy()
 {
     Utilities.Log("OnDestroy");
     Instance = null;
     APIReady = false;
     foreach (Component child in children)
     {
         Utilities.Log("DeepFreeze Child Destroy for " + child.name);
         Destroy(child);
     }
     children.Clear();
     DeepFreezeEventRem();
     GameEvents.onGameSceneLoadRequested.Remove(OnGameSceneLoadRequested);
 }