Ejemplo n.º 1
0
 protected bool CheckFinish()
 {
     if (m_CurConf != null && m_CurConf.nextId != 0)
     {
         ConfGuid nextConf = ConfGuid.Get(m_CurConf.nextId);
         if (nextConf != null && nextConf.isMain)
         {
             Debug.Log("start next root : " + m_CurConf.nextId);
             GuidFactory.Instance.RemoveGuidByID(m_CurConf.id);
             GuidFactory.Instance.CreateRootGuid(m_CurConf.nextId);
             return(true);
         }
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 //即将触发的根节点
 public long GetNextRootID()
 {
     if (IsRoot())
     {
         long     nextId   = m_CurConf.nextId;
         ConfGuid nextConf = ConfGuid.Get(nextId);
         while (nextConf != null && !nextConf.isMain)
         {
             nextConf = ConfGuid.Get(nextConf.nextId);
         }
         if (nextConf != null && nextConf.isMain)
         {
             return(nextConf.id);
         }
     }
     return(-1);
 }
Ejemplo n.º 3
0
 protected void MoveToNext()
 {
     Destory();
     if (!CheckFinish())
     {
         long     rootID   = m_RootID;
         ConfGuid confGuid = ConfGuid.Get(m_CurConf.nextId);
         if (!string.IsNullOrEmpty(confGuid.uiName))
         {
             rootID = confGuid.id;
         }
         GuidFactory.Instance.CreateGuidByID((GuidEnum)confGuid.type, m_keyID, rootID, m_CurConf.nextId);
     }
     else
     {
         //整条完成
         Debug.Log(m_RootID + "已完成" + m_CurID);
         GuidFactory.Instance.RemoveGuidByID(m_CurConf.id);
         GuidManager.Instance.SetProgressByIndex(m_keyID);
     }
 }
Ejemplo n.º 4
0
 private void SetRootID(long rootID)
 {
     this.m_RootID = rootID;
     m_RootConf    = ConfGuid.Get(this.m_RootID);
 }
Ejemplo n.º 5
0
 private void SetCurrentID(long curID)
 {
     this.m_CurID = curID;
     m_CurConf    = ConfGuid.Get(this.m_CurID);
 }