void Update() { float easeArrowScale = MyMaths.CubicEaseOut(Time.time - startTime, 0, targetArrowScale - initialArrowScale, durationTime); currentArrowScale = easeArrowScale + initialArrowScale; transform.localScale = new Vector3(currentArrowScale, currentArrowScale, 1f); easeArrowDir = MyMaths.ElasticEaseOut(Time.time - startTime, 0, targetArrowDir - initialArrowDir, durationTime); currentArrowDir = easeArrowDir + initialArrowDir; float result = MyMaths.Remap(currentArrowDir, 0, 360, 360, 0); transform.localEulerAngles = new Vector3(0, 0, result); }