void Update() { Sprite.transform.localPosition = new Vector3(0, OffsetY + Mathf.Sin(Time.fixedTime * Speed) / _swayRatio, 0); }