Mathf-PingPong - Unity スクリプトリファレンス

PingPong returns a value that will increment and decrement between the value 0 and length.