Trying to make some c# script to convert from java script and getting some errors how can i fix ?

using UnityEngine;
    using System.Collections;
   
    public class CameraScript : MonoBehaviour {
   
        public Transform TargetLookAt;
   
        public float Distance = 5.0;
        public float DistanceMin = 3.0;
        public float DistanceMax = 10.0;
   
        private float mouseX = 0.0;
        private float mouseY = 0.0;
        private float startingDistance = 0.0;    
        private float desiredDistance = 0.0;
   
        public float X_MouseSensitivity = 5.0;
        public float Y_MouseSensitivity = 5.0;
        public float MouseWheelSensitivity = 5.0;
        public float Y_MinLimit = -40.0;
        public float Y_MaxLimit = 80.0;
   
        public float DistanceSmooth = 0.05;    
        private float velocityDistance = 0.0;    
        private Vector3 desiredPosition = Vector3.zero;
   
        public float X_Smooth = 0.05;
        public float Y_Smooth = 0.1;
        private float velX = 0.0;
        private float velY = 0.0;
        private float velZ = 0.0;
        private Vector3 position = Vector3.zero;
   
        // Use this for initialization
        void Start () {
   
            Distance = Mathf.Clamp(Distance, DistanceMin, DistanceMax);
            startingDistance = Distance;
            Reset();
            SetCursorState();
            OnGUI();
       
        }
       
        // Update is called once per frame
        void Update () {
       
        }
   
        void LateUpdate()
        {
            if (TargetLookAt == null)
                return;
   
            HandlePlayerInput();
   
            CalculateDesiredPosition();
   
            UpdatePosition();
        }
   
        void HandlePlayerInput()
        {
            var deadZone = 0.01; // mousewheel deadZone
   
            //if (Input.GetMouseButton(1))
            //{
            mouseX += Input.GetAxis("Mouse X") * X_MouseSensitivity;
            mouseY -= Input.GetAxis("Mouse Y") * Y_MouseSensitivity;
            //}
   
            // this is where the mouseY is limited - Helper script
            mouseY = ClampAngle(mouseY, Y_MinLimit, Y_MaxLimit);
   
            // get Mouse Wheel Input
            if (Input.GetAxis("Mouse ScrollWheel") < -deadZone || Input.GetAxis("Mouse ScrollWheel") > deadZone)
            {
                desiredDistance = Mathf.Clamp(Distance - (Input.GetAxis("Mouse ScrollWheel") * MouseWheelSensitivity), 
                    DistanceMin, DistanceMax);
            }
        }
   
        void CalculateDesiredPosition()
        {
            // Evaluate distance
            Distance = Mathf.SmoothDamp(Distance, desiredDistance, velocityDistance, DistanceSmooth);
   
            // Calculate desired position -> Note : mouse inputs reversed to align to WorldSpace Axis
            desiredPosition = CalculatePosition(mouseY, mouseX, Distance);
        }
   
        void CalculatePosition(rotationX : float, rotationY : float, distance : float)
        {
            var direction : Vector3 = Vector3(0, 0, -distance);
            var rotation : Quaternion = Quaternion.Euler(rotationX, rotationY, 0);
            return TargetLookAt.position + (rotation * direction);
        }
   
        void UpdatePosition()
        {
            var posX = Mathf.SmoothDamp(position.x, desiredPosition.x, velX, X_Smooth);
            var posY = Mathf.SmoothDamp(position.y, desiredPosition.y, velY, Y_Smooth);
            var posZ = Mathf.SmoothDamp(position.z, desiredPosition.z, velZ, X_Smooth);
            position = Vector3(posX, posY, posZ);
   
            transform.position = position;
   
            transform.LookAt(TargetLookAt);
        }
   
        void Reset()
        {
            mouseX = 0;
            mouseY = 10;
            Distance = startingDistance;
            desiredDistance = Distance;
        }
   
        void ClampAngle(angle : float, min : float, max : float)
        {
            while (angle < -360 || angle > 360)
            {
                if (angle < -360)
                    angle += 360;
                if (angle > 360)
                    angle -= 360;
            }
   
            return Mathf.Clamp(angle, min, max);
        }
   
        // Apply requested cursor state
        void SetCursorState ()
        {
            Cursor.lockState = wantedMode;
            // Hide cursor when locking
            Cursor.visible = (CursorLockMode.Locked != wantedMode);
        }
   
        void OnGUI ()
        {
            GUILayout.BeginVertical ();
            // Release cursor on escape keypress
            if (Input.GetKeyDown (KeyCode.Escape))
                Cursor.lockState = wantedMode = CursorLockMode.None;
   
            switch (Cursor.lockState)
            {
            case CursorLockMode.None:
                GUILayout.Label ("Cursor is normal");
                if (GUILayout.Button ("Lock cursor"))
                    wantedMode = CursorLockMode.Locked;
                if (GUILayout.Button ("Confine cursor"))
                    wantedMode = CursorLockMode.Confined;
                break;
            case CursorLockMode.Confined:
                GUILayout.Label ("Cursor is confined");
                if (GUILayout.Button ("Lock cursor"))
                    wantedMode = CursorLockMode.Locked;
                if (GUILayout.Button ("Release cursor"))
                    wantedMode = CursorLockMode.None;
                break;
            case CursorLockMode.Locked:
                GUILayout.Label ("Cursor is locked");
                if (GUILayout.Button ("Unlock cursor"))
                    wantedMode = CursorLockMode.None;
                if (GUILayout.Button ("Confine cursor"))
                    wantedMode = CursorLockMode.Confined;
                break;
            }
   
            GUILayout.EndVertical ();
   
            SetCursorState ();
        }

First in the Start function all this three functions i’m calling not exist error message:

Reset();
SetCursorState();
OnGUI();

Then in the LateUpdate function i’m calling this function also not exist message:

UpdatePosition();

Then on this function:

void CalculatePosition(rotationX : float, rotationY : float, distance : float)
{
var direction : Vector3 = Vector3(0, 0, -distance);
var rotation : Quaternion = Quaternion.Euler(rotationX, rotationY, 0);
return TargetLookAt.position + (rotation * direction);
}

On float, rotationY : float, distance : float i’m getting identifier expected

Then in the function on the three lines: expected’;’ ex[ected ‘;’ and invalid token ‘-’…

Last this function: void UpdatePosition() i’m getting error:
Scripts\CameraScript.cs(2,2): Error CS0116: A namespace cannot directly contain members such as fields or methods (CS0116) (Assembly-CSharp)

unityscript has the type after the parameter/variable name
c# has the type first

float angle

Thanks fixed.