示例#1
0
        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);
        }
示例#2
0
        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);
        }