Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public void Dispose() => _instance = null;