static void CreateInstance() { if (s_pIns == null) { GameObject go = new GameObject("fc_instance"); GameObject.DontDestroyOnLoad(go); s_pIns = go.AddComponent <FCDll_coroutine_udpate>(); } }
public static void ReleaseDll() { FCLibHelper.fc_release(); if (s_pIns != null) { GameObject.DestroyImmediate(s_pIns.gameObject); s_pIns = null; } }