//on enable or activate private void OnEnable() { //finalize or allocate serialized properties here if (SH == null) { SH = new mset.SHEncoding(); } SH.copyToBuffer(); }
//on enable or activate private void OnEnable() { //finalize or allocate serialized properties here if (SH == null) { SH = new mset.SHEncoding(); } if (this.CustomSH != null) { SH.copyFrom(this.CustomSH.SH); } SH.copyToBuffer(); SceneManager.sceneLoaded += SceneStart; }