Ejemplo n.º 1
0
 public void ChangProcedure(BattleProcedureType type)
 {
     if (m_CurrentProcedure.GetProcedureType() != type)
     {
         m_CurrentProcedure.OnLeave();
         m_CurrentProcedure = m_ProcedureList[type];
         m_CurrentProcedure.OnEnter();
     }
 }
Ejemplo n.º 2
0
 public void Update()
 {
     /*
      * if (m_CurrentProcedure == null)
      * {
      *  m_CurrentProcedure = m_ProcedureList[BattleProcedureType.E_BATTLE_PROCEDURE_BATTLE_START];
      *  m_CurrentProcedure.OnEnter();
      * }*/
     if (m_CurrentProcedure == null)
     {
         m_CurrentProcedure = m_ProcedureList[BattleProcedureType.E_BATTLE_PROCEDURE_RESOURCE_LOAD];
         m_CurrentProcedure.OnEnter();
     }
     m_CurrentProcedure.Update();
 }