void Awake() { m_kInstance = this; DontDestroyOnLoad(gameObject); #if UNITY_EDITOR EditorSync.Init(); #else DeviceSync.Init(); #endif }
IEnumerator UpdateLogic() { while (true) { yield return(wt); yield return(wfeof); #if UNITY_EDITOR EditorSync.UpdateLogic(); #else DeviceSync.UpdateLogic(); #endif } }