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