How do I fix the following problem?
Assets/Scripts/TurretLook.cs(18,73): error CS0119: Expression denotes a type', where a
variable’, value' or
method group’ was expected
here is the script:
using UnityEngine;
using System.Collections;
public class TurretLook : MonoBehaviour
{
public Transform AimPoint;
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
Vector3 mousePosition = Input.mousePosition;
float AimingPointDistance = 14.2f;
Vector3 AimingPointPosition = camera.ScreenToWorldPoint(Vector3(mousePosition.x,mousePosition.y,AimingPointDistance));
AimPoint.position = AimingPointPosition;
}
}