Bezi回来了
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Cielonos.MainGame.Characters
|
||||
public CinemachineCamera lockingTargetCamera;
|
||||
public CharacterBase testEnemy;
|
||||
|
||||
public CameraFovSubmodule cameraFovSm;
|
||||
public CameraRotationSubmodule cameraRotationSm;
|
||||
public OcclusionFadeSubmodule occlusionFadeSm;
|
||||
public LockTargetSubmodule lockTargetModule;
|
||||
@@ -30,10 +31,14 @@ namespace Cielonos.MainGame.Characters
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
cameraFovSm = new CameraFovSubmodule(this, 30f, 30f, 40f, 0.1f, 10f, 5f, true);
|
||||
cameraRotationSm = new CameraRotationSubmodule(this, player.transform.eulerAngles.y);
|
||||
occlusionFadeSm = new OcclusionFadeSubmodule(this);
|
||||
lockTargetModule = new LockTargetSubmodule(this);
|
||||
cameraFOV = new LerpFloat(30f, 2f);
|
||||
|
||||
player.operationSc.OnLockonTarget += lockTargetModule.SwitchLockState;
|
||||
player.operationSc.OnSelectLockonTarget += lockTargetModule.SwitchTarget;
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -43,11 +48,6 @@ namespace Cielonos.MainGame.Characters
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (Keyboard.current.tabKey.wasPressedThisFrame)
|
||||
{
|
||||
lockTargetModule.SwitchLockState();
|
||||
}
|
||||
|
||||
/*cameraFOV.targetValue = owner.landMovementSc.isSprinting ? 40f : 30f;
|
||||
cameraFOV.Update(owner.selfTimeSm.DeltaTime);
|
||||
freeLookCamera.Lens.FieldOfView = cameraFOV.currentValue;*/
|
||||
|
||||
Reference in New Issue
Block a user