コード例 #1
0
 /// <summary>
 /// Deactivate on non-windows platforms
 /// </summary>
 public void Awake()
 {
     if (!ChromaUtils.IsPlatformSupported())
     {
         ChromaUtils.SetActive(gameObject, false);
         return;
     }
 }
コード例 #2
0
 public void Awake()
 {
     if (!ChromaUtils.IsPlatformSupported())
     {
         ChromaUtils.SetActive(gameObject, false);
         return;
     }
     if (Application.isPlaying)
     {
         DontDestroyOnLoad(gameObject);
     }
     Connect();
 }