示例#1
0
        void Tracer_ReachPointEvent(GuidMoveController param)
        {
            bool inJump = false;

            if (tracer.fliping)
            {
                if (jumpIndexs.Contains(param.movingIndex - 1))
                {
                    inJump = true;
                }
            }
            else
            {
                if (jumpIndexs.Contains(param.movingIndex))
                {
                    inJump = true;
                }
            }
            if (inJump)
            {
                //				Log.Debug ("need jump {0}",tracer.movingIndex);
                if (!animJump.running)
                {
                    //					Log.Debug ("start jump {0}",tracer.movingIndex);
                    animJump.StartPlay();
                    animRun.StopPlay();
                }
            }
            else
            {
                //				Log.Debug ("go to normal {0}",tracer.movingIndex);
                animJump.StopPlay();
                animRun.StartPlay();
            }
        }
示例#2
0
文件: E9.cs 项目: imhazige/AeroEgg
        void Tracer_FlipingEvent(GuidMoveController param)
        {
//			Vector2DUtils.Flip(transform);
        }
示例#3
0
 void Tracer_ReachPointEvent(GuidMoveController param)
 {
     tracer.OnPause();
     DoIdle();
 }