示例#1
0
 public override void NDUpdate(float deltaTime)
 {
     if (CheckCombatIng())
     {
         if (m_AppearAction == null || m_AppearAction.IsDone())
         {
             InBoat = true;
             if (m_timecount > m_info.LifeTime * 0.001f)
             {
                 return;
             }
             m_timecount += deltaTime;
             if (m_timecount > m_info.LifeTime * 0.001f)
             {
                 Dead();
                 InheritSummonProsSkillCom.CheckConditionSkill();
             }
             m_Skill.Update(deltaTime);
         }
         else
         {
             m_AppearAction.Update();
         }
     }
 }
示例#2
0
    public override void GameOver(bool isWin)
    {
        base.GameOver(isWin);
        if (m_CurrentAction != null)
        {
            m_CurrentAction.SetDone();
        }
        if (isWin)
        {
            m_CurrentAction = new GridActionCmdWin();
        }
        else
        {
            m_CurrentAction = new GridActionCmdFaile();
        }

        m_CurrentAction.SetTarget(this);
        m_CurrentAction.Update();
    }