/// <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(); }