//巡回開始の座標まで移動。到着後は巡回状態になる。 public IState Excute() { IState state = this; if (!warped) { if (next == null) { mover.MoveToWaypointsThen(scatterPoint, () => { next = states[State.Scatter] as Scatter; next.SetState(); }); } else { state = next; } } else //ワープ中。 { if (warpEndTime < Time.fixedTime) { sprite.enabled = true; warped = false; } } return(state); }