Example #1
0
 public UnityMessageHandler()
 {
     if (_instance != null)
     {
         throw new Exception("Only one instance of UnityMessageHandler is allowed. Dispose the existing instance before creating a new one.");
     }
     _instance = this;
 }
Example #2
0
 public void Dispose() => _instance = null;