#pragma strict
public var character : Transform;
public var cameraSmoothing : float = 0.01;
private var mainCamera : Camera;
private var mainCameraTransform : Transform;
private var cameraVelocity : Vector3 = Vector3.zero;
function Awake ()
{
mainCamera = Camera.main;
mainCameraTransform = mainCamera.transform;
}
function Update()
{
mainCameraTransform.position = Vector3.SmoothDamp (mainCameraTransform.position, (character.position + Vector3(5,5,-8)), cameraVelocity, cameraSmoothing);
}