Exemple #1
0
 //on enable or activate
 private void OnEnable()
 {
     //finalize or allocate serialized properties here
     if (SH == null)
     {
         SH = new mset.SHEncoding();
     }
     SH.copyToBuffer();
 }
Exemple #2
0
 //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;
 }