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