private void Update() { if (selectConditions.Evaluate()) { try { Vector3 mousePos = CrossInput.Position; //#if UNITY_ANDROID && !UNITY_EDITOR // AndroidAdbLog.LogInfo(mousePos); // //AndroidAdbLog.LogInfo(Input.GetTouch(0).position); //#endif bool raycastHitted = Physics.Raycast( CameraRaycaster.ScreenPointToRay(mousePos), out RaycastHit hitInfo, CameraRaycaster.farClipPlane); if (raycastHitted) { SelectedPosition = MapIns.WorldToCell(hitInfo.point).ZToZero(); DetermineSelectedOnTower(); // DetermineSelectedOnRSS(hitInfo); selectedCallback?.Invoke(SelectedPosition); } } catch (System.Exception e) { //#if UNITY_ANDROID && !UNITY_EDITOR // AndroidAdbLog.LogInfo(e.ToString()); //#endif Debugger.Log(e.ToString()); Debugger.Log(Input.mousePosition); } } }