コード例 #1
0
ファイル: SyncCenter.cs プロジェクト: catoxliu/SimpleSync
        void Awake()
        {
            m_kInstance = this;
            DontDestroyOnLoad(gameObject);
#if UNITY_EDITOR
            EditorSync.Init();
#else
            DeviceSync.Init();
#endif
        }
コード例 #2
0
ファイル: SyncCenter.cs プロジェクト: catoxliu/SimpleSync
        IEnumerator UpdateLogic()
        {
            while (true)
            {
                yield return(wt);

                yield return(wfeof);

#if UNITY_EDITOR
                EditorSync.UpdateLogic();
#else
                DeviceSync.UpdateLogic();
#endif
            }
        }