示例#1
0
    protected override void ClearEvent()
    {
        m_loader.Detach(LOAD_EVT.PROGRESS, onLoadEvt);
        m_loader.Detach(LOAD_EVT.COMPLETE, onLoadEvt);

        CCApp.UnschUpdate(Step);
    }
示例#2
0
    protected override void SetupEvent()
    {
        m_loader.Attach(LOAD_EVT.PROGRESS, onLoadEvt, null);
        m_loader.Attach(LOAD_EVT.COMPLETE, onLoadEvt, null);

        CCApp.SchUpdate(Step);
    }
示例#3
0
    override protected void __Clear()
    {
        QuitGame();

        LoadMgr.Clear();

        CCApp.Clear();

        Log.Info("MainEntry Clear", this);
    }
示例#4
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="params_">
    /// [0] 游戏GameObj根
    /// </param>
    override protected void __Setup(params object[] params_)
    {
        base.__Setup();

        GameObject root = params_[0] as GameObject;

        Log.Info("MainEntry Setup", this);

        CCApp.resMgr   = new ResMgr();
        CCApp.soundMgr = new SoundMgr(root);
        CCApp.Setup(root);

        LoadMgr.Setup();
    }
示例#5
0
    void OnLoadReqProg(IProgress prog_)
    {
        ProgData prog = prog_ as ProgData;

        CCApp.StartCoroutine(ProcessInit(prog));
    }