Beispiel #1
0
 public static LuaGameMgr InitByFind(string name)
 {
     if (m_Instance == null)
     {
         GameObject go = GameObject.Find(name);
         m_Instance = new LuaGameMgr(go);
     }
     return(m_Instance);
 }
Beispiel #2
0
 public static LuaGameMgr InitByCreate(string name)
 {
     if (m_Instance == null)
     {
         GameObject cvs = new GameObject(name);
         m_Instance = new LuaGameMgr(cvs);
     }
     return(m_Instance);
 }