private void Update() { #if UNITY_EDITOR || UNITY_STANDALONE if (isInAimMode) { var inputPosition = (Vector2)Camera.main.ScreenToWorldPoint(Input.mousePosition); activePlayerBall.CalculateTrajectory(inputPosition - (Vector2)activePlayerBall.transform.position); } if (Input.GetMouseButtonDown(0) && isInAimMode) { isInAimMode = false; activePlayerBall.Launch(); } #else //mobile input goes here #endif }