Пример #1
0
        void Awake()
        {
            m_kInstance = this;
            DontDestroyOnLoad(gameObject);
#if UNITY_EDITOR
            EditorSync.Init();
#else
            DeviceSync.Init();
#endif
        }
Пример #2
0
 void OnDestroy()
 {
     StopAllCoroutines();
     m_kInstance = null;
 }