Closes #55 In Ship Camera Follow Offset revoke when end interaction
This commit is contained in:
parent
2cbd7dd194
commit
a82255ee81
@ -28,6 +28,7 @@ namespace BlueWaterProject
|
||||
|
||||
[Required("보트안 카메라를 넣어주세요.")]
|
||||
public CinemachineVirtualCamera inShipCam;
|
||||
private Vector3 inShipCamOrigenalOffset;
|
||||
|
||||
public float sensitivity = 0.01f;
|
||||
|
||||
@ -44,6 +45,7 @@ namespace BlueWaterProject
|
||||
protected override void OnAwake()
|
||||
{
|
||||
MainCam = Camera.main;
|
||||
inShipCamOrigenalOffset = inShipCam.GetCinemachineComponent<CinemachineTransposer>().m_FollowOffset;
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@ -181,7 +183,7 @@ namespace BlueWaterProject
|
||||
var transform1 = GameManager.Inst.InShipPlayer.transform;
|
||||
inShipCam.Follow = transform1;
|
||||
inShipCam.LookAt = transform1;
|
||||
var targetOffset = new Vector3(0, 20, -10);
|
||||
var targetOffset = inShipCamOrigenalOffset;
|
||||
StartSmoothTransition(targetOffset);
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15978934df642964d83e02a48645ca70
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9a3a3c3e8c9b17b49b7212296547d096
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user