Not sure what i did wrong but i keep getting this error:
Assets/Scripts/NodeController.js(5,31): BCE0024: The type 'CameraNode' does not have a visible constructor that matches the argument list '(UnityEngine.Vector3, float)'.
This is the script:
var range : float;
function Start() {
var myNode : CameraNode = new CameraNode(transform.position, range);
gameObject.Find("Main Camera").GetComponent(CameraController).cameraNodes.push(myNode);
}
Any help would be appreciated.