private void SetPosition(TunnelVector3 position) { if (!IsInTunnel) { Debug.LogError("Tunnel is not assinged!"); return; } if (position.Depth < 0) { position.Depth = 0; } if (position.Depth > _tunnel.Length) { position.Depth = _tunnel.Length; } _position = position; _tunnel.PutInTunnel(Transform, Position); }