public bool EnterEctype(EnterEctypeContext context) { if (ClientState.Ectype == m_nState) { return(false); } m_EnterEctypeContext = context; m_bRequestEnter[(int)ClientState.Ectype] = true; return(true); }
public void OnEnterEctype(GameObject go) { EnterEctypeContext ctx = new EnterEctypeContext(); ctx.m_EctypeCreateData.type = LevelInfor.useType; ctx.m_EctypeCreateData.dwEctypeID = LevelInfor.ectypeID; ctx.m_EctypeCreateData.bGuide = LevelInfor.bGuide; ctx.m_EctypeCreateData.sceneID = LevelInfor.sceneID; GameMgr.Instance.m_clientMgr.EnterEctype(ctx); GameObject obj = GameMgr.Instance.m_uiMgr.GetActive(); if (obj) { obj.SetActive(false); } }