public virtual void OnObjectEndTurn() { objectSelected.OnEndTurn -= OnObjectEndTurn; objectSelected.SetTurnState(CEnum.ETurnState.EndTurn); m_WaitingTime = m_WaitingTimeInterval; m_SequenceList.Dequeue(); GameState = CEnum.EGameState.EndTurn; }
public virtual void OnObjectStartTurn() { var turn = m_TurnCount + 1; m_TurnCount = turn; OnTurnChange(m_TurnCount); objectSelected = m_SequenceList.Peek(); if (objectSelected == null) { return; } objectSelected.OnEndTurn -= OnObjectEndTurn; objectSelected.OnEndTurn += OnObjectEndTurn; objectSelected.SetTurnState(CEnum.ETurnState.StartTurn); m_UIManager.SetAnimation(CEnum.EUIState.Idle); m_CameraController.target = objectSelected.transform; m_UIManager.target = objectSelected; }