public static void FocusOnObject(GameObject Obj) { Bounds FocusBound = new Bounds(Obj.transform.localPosition, Vector3.one); Current.Pos = FocusBound.center; Current.ClampPosY(); float size = Mathf.Max(FocusBound.size.x, FocusBound.size.z) * 2; Current.zoomIn = size / (Current.MapSize * 0.075f) + 0.21f; }