浏览代码

fixed bug with scene reset, do an early condition check for the UX manager that will bypass fading on or off any condition that is already met

/main
Dan 3 年前
当前提交
52888372
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      Assets/UX/Scripts/UIManager.cs

8
Assets/UX/Scripts/UIManager.cs


{
// pop off
m_CurrentHandle = m_UXOrderedQueue.Dequeue();
// exit instantly, if the goal is already met it will skip showing the first UI and move to the next in the queue
m_GoalReached = GetGoal(m_CurrentHandle.Goal);
if (m_GoalReached.Invoke())
{
return;
}
m_GoalReached = GetGoal(m_CurrentHandle.Goal);
m_ProcessingInstructions = true;
m_FadedOff = false;
}

正在加载...
取消
保存