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(); } }
void Tracer_FlipingEvent(GuidMoveController param) { // Vector2DUtils.Flip(transform); }
void Tracer_ReachPointEvent(GuidMoveController param) { tracer.OnPause(); DoIdle(); }