void Awake() { m_kInstance = this; DontDestroyOnLoad(gameObject); #if UNITY_EDITOR EditorSync.Init(); #else DeviceSync.Init(); #endif }
void OnDestroy() { StopAllCoroutines(); m_kInstance = null; }