Ejemplo n.º 1
0
        public override void step(float deltaTime)
        {
            if (m_currentAction == null)
            {
                if (getNextAction())
                {
                    m_currentAction.start(getTarget());
                    m_currentAction.step(deltaTime);
                }
                else
                {
                    stop();
                }
            }
            else
            {
                m_currentAction.step(deltaTime);

                if (m_currentAction.isDone())
                {
                    m_currentAction.stop();
                    m_currentAction = null;
                }
            }
        }
Ejemplo n.º 2
0
 public override void step(float deltaTime)
 {
     m_innerAction.step(deltaTime);
     if (m_innerAction.isDone())
     {
         m_innerAction.stop();
         m_innerAction.start(this.getTarget());
         m_innerAction.step(0);
     }
 }
Ejemplo n.º 3
0
        public override void step(float deltaTime)
        {
            //        base.step (deltaTime);
            m_innerAction.step(deltaTime);
            if (m_innerAction.isDone())
            {
                m_innerAction.stop();

                ++m_times;
                if (m_times < m_totalTimes)
                {
                    m_innerAction.start(this.getTarget());
                    m_innerAction.step(0);
                }
                else
                {
                    this.stop();
                }
            }
        }