void SyncPos() { if (_xOverlap > 0) { _xPos = Mathf.Clamp(-_container.x, 0, _xOverlap); _xPerc = _xPos / _xOverlap; } if (_yOverlap > 0) { _yPos = Mathf.Clamp(-_container.y, 0, _yOverlap); _yPerc = _yPos / _yOverlap; } }