Exemplo n.º 1
0
    public override void Update()
    {
        if (NrTSingleton <NkCharManager> .Instance.CharacterListSetComplete)
        {
            NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(NrTSingleton <NkCharManager> .Instance.SelectedCharID);

            if (@char != null)
            {
                NrCharUser nrCharUser = @char as NrCharUser;
                if (nrCharUser != null && nrCharUser.IsShaderRecovery() && NrTSingleton <NkCharManager> .Instance.SelectedCharID != 0)
                {
                    this.CharacterSelect(nrCharUser, false);
                }
            }
        }
        if (this.m_CameraAniPlay == null)
        {
            return;
        }
        E_CHAR_SELECT_STEP e_CHAR_SELECT_STEP = this.m_CameraAniPlay.Update();

        if (e_CHAR_SELECT_STEP != E_CHAR_SELECT_STEP.NONE)
        {
            this.m_SelectStep = e_CHAR_SELECT_STEP;
        }
        E_CHAR_SELECT_STEP selectStep = this.m_SelectStep;

        if (selectStep != E_CHAR_SELECT_STEP.INTRO)
        {
            if (selectStep != E_CHAR_SELECT_STEP.CREATE_SELECT)
            {
                if (this.m_CharselInput != null)
                {
                    NrTSingleton <NrMainSystem> .Instance.m_kInputManager.RemoveInputCommandLayer(this.m_CharselInput);

                    this.m_CharselInput = null;
                }
            }
            else if (this.m_CharselInput == null)
            {
                this.m_CharselInput = new CharSelectCommandLayer();
                NrTSingleton <NrMainSystem> .Instance.m_kInputManager.AddInputCommandLayer(this.m_CharselInput);
            }
        }
        else if (NkInputManager.GetMouseButtonUp(0))
        {
            if (NrTSingleton <FormsManager> .Instance.IsForm(G_ID.TOASTMSG_DLG))
            {
                NrTSingleton <CCameraAniPlay> .Instance.SkipEvent();
            }
            else
            {
                ToastMsgDlg toastMsgDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TOASTMSG_DLG) as ToastMsgDlg;

                toastMsgDlg.SetMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("24"));
            }
        }
    }
 public void RemoveInputCommandLayer(InputCommandLayer layer)
 {
     this.listInputCommandLayer.Remove(layer);
 }
 public void AddInputCommandLayer(InputCommandLayer layer)
 {
     this.listInputCommandLayer.Add(layer);
 }