|
|
|
|
|
|
{ |
|
|
|
freeLookVCam.Follow = target; |
|
|
|
freeLookVCam.LookAt = target; |
|
|
|
freeLookVCam.OnTargetObjectWarped(target,target.position-freeLookVCam.transform.position); |
|
|
|
} |
|
|
|
|
|
|
|
private void OnEnable() |
|
|
|
|
|
|
|
|
|
|
private void OnFrameObjectEvent(Transform value) |
|
|
|
{ |
|
|
|
Debug.Log("distance of player from camera:" + Vector3.Distance(freeLookVCam.transform.position,value.position)); |
|
|
|
SetupProtagonistVirtualCamera(value); |
|
|
|
} |
|
|
|
} |