public void OnApplicationQuit()
 {
     if (ChromaUtils.IsPlatformSupported())
     {
         Disconnect();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deactivate on non-windows platforms
 /// </summary>
 public void Awake()
 {
     if (!ChromaUtils.IsPlatformSupported())
     {
         ChromaUtils.SetActive(gameObject, false);
         return;
     }
 }
 public void Awake()
 {
     if (!ChromaUtils.IsPlatformSupported())
     {
         ChromaUtils.SetActive(gameObject, false);
         return;
     }
     if (Application.isPlaying)
     {
         DontDestroyOnLoad(gameObject);
     }
     Connect();
 }