Example #1
0
 private void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
Example #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     UpdateMeshText();
 }