public override bool ChangeState() { bool shapesConsumed = false; if ((m_ShouldShapesBeRemaining && !m_Consumed.AllConsumed()) || (!m_ShouldShapesBeRemaining && m_Consumed.AllConsumed())) { shapesConsumed = true; } if (m_StatusListener.MatchesStatus(PlayerStatus.OffScreen) && shapesConsumed) { PerformTransition(); return(true); } return(false); }
public override bool ChangeState() { if (m_Consumed.AllConsumed() && !m_MarkCompleteJob.running) { m_MarkCompleteJob.Start(); } if (m_ShouldTransition) { Debug.Log("Should transition"); PerformTransition(); return(true); } return(false); }