public void Init() { this.config = SunShaftsConfig.Deserialize("SunShaftsConfig.xml"); if (this.config == null) { this.config = new SunShaftsConfig(); } this.enabled = this.config.m_Enabled; }
public void Unload() { this.config.m_Enabled = this.enabled; SunShaftsConfig.Serialize("SunShaftsConfig.xml", (object)this.config); Object shader = (Object)this.sunShaftsMaterial.shader; Object sunShaftsMaterial = (Object)this.sunShaftsMaterial; Object.DestroyImmediate(shader, true); Object.DestroyImmediate(sunShaftsMaterial, true); Object.Destroy((Object)this); }