Beispiel #1
0
    public void MoveTo(eGameStep eStep)
    {
        if (false == IsExistStep(eStep))
        {
            Debug.LogWarningFormat("SHGameStep:MoveStep() - Not Register Step : {0}", eStep);
            return;
        }

        m_eMoveTo = eStep;
        m_dicSteps[m_eMoveTo].m_eStep = m_eMoveTo;
        m_dicSteps[m_eMoveTo].Awake();
    }
Beispiel #2
0
    private void ChangeStep()
    {
        if (eGameStep.None == m_eMoveTo)
        {
            return;
        }

        if (false == IsExistStep(m_eMoveTo))
        {
            return;
        }

        if (true == IsExistStep(m_eCurrentStep))
        {
            m_dicSteps[m_eCurrentStep].FinalStep();
        }

        m_iCallCnt     = 0;
        m_eBeforeStep  = m_eCurrentStep;
        m_eCurrentStep = m_eMoveTo;
        m_eMoveTo      = eGameStep.None;

        m_dicSteps[m_eCurrentStep].InitialStep();
    }
Beispiel #3
0
 public void DirectMoveTo(eGameStep eMoveStep)
 {
     Single.GameStep.DirectMoveTo(eMoveStep);
 }
Beispiel #4
0
    }                                                  // Step이 Resume될때

    #endregion


    #region System Functions
    #endregion


    #region Interface Functions
    public void MoveTo(eGameStep eMoveStep)
    {
        Single.GameStep.MoveTo(eMoveStep);
    }
Beispiel #5
0
 private bool IsExistStep(eGameStep eStep)
 {
     return(m_dicSteps.ContainsKey(eStep));
 }
Beispiel #6
0
 public void DirectMoveTo(eGameStep eStep)
 {
     MoveTo(eStep);
     ChangeStep();
 }