Example #1
0
    static int Initialize(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        GameStatesManager obj = LuaScriptMgr.GetNetObject <GameStatesManager>(L, 1);

        obj.Initialize();
        return(0);
    }
Example #2
0
    // ------------------------------------------------------- 华丽的分割线 --------------------------------------------------

    /// <summary>
    /// 初始化函数
    /// </summary>
    public override void Initialize()
    {
        m_gameStatesManager = new GameStatesManager();
        m_gameStatesManager.Initialize();

        m_sceneCamera = GameObject.FindGameObjectWithTag("SceneCamera").GetComponent <Camera>();
        m_uiRoot      = GameObject.Find(m_uiRootName);
        m_sceneRoot   = GameObject.Find(m_sceneRootName);

        m_datamanager = new DataManager();

        InitPool();
        InitLuaManager();
        InitTimesList();
        InitCityPoints();

        LoadLuaFiles();
    }
 public override void Initialize()
 {
     m_gameStatesManager = new GameStatesManager();
     m_gameStatesManager.Initialize();
 }