public void RightBlock() { float scaleDelta = Interpolation.easeOutElastic(startUpper, endUpper, accumulate / maxSecond); _rightUpperArmAnchor.SetEulerAngleZ(scaleDelta); //float scaleDelta = Interpolation.easeInOutBack (start,end, accumulate/maxSecond); scaleDelta = Interpolation.easeOutElastic(startFore, endFore, accumulate / maxSecond); _rightForeArmAnchor.SetEulerAngleZ(scaleDelta); if (maxSecond <= accumulate) { accumulate = 0; //a. repeat normal //accumulate = maxSecond; //b. one time float temp = startFore; //a-1. repeat ping pong startFore = endFore; endFore = temp; temp = startUpper; //a-2. repeat ping pong startUpper = endUpper; endUpper = temp; } accumulate += Time.deltaTime; }