camera fix

This commit is contained in:
dddushesss 2021-12-17 14:12:00 +03:00
parent 131c0f060f
commit 143e28fd6e
3 changed files with 3 additions and 4 deletions

View File

@ -292,13 +292,13 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225} m_GameObject: {fileID: 963194225}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0.5, y: 0, z: 0, w: 0.8660254}
m_LocalPosition: {x: 14.935106, y: 1.1221166, z: 13.4063225} m_LocalPosition: {x: 14.935106, y: 1.1221166, z: 13.4063225}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 30, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 60, y: 0, z: 0}
--- !u!1 &1750604535 --- !u!1 &1750604535
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -32,7 +32,7 @@ namespace CamControl
Vector3 smothedPosition = Vector3 smothedPosition =
Vector3.Lerp(_camera.transform.position, desiredPosition, _smoothSpeed * Time.deltaTime); Vector3.Lerp(_camera.transform.position, desiredPosition, _smoothSpeed * Time.deltaTime);
_camera.transform.position = smothedPosition; _camera.transform.position = smothedPosition;
_camera.transform.LookAt(_target);
} }
} }
} }

View File

@ -2,7 +2,6 @@
using Data; using Data;
using DG.Tweening; using DG.Tweening;
using HexFiled; using HexFiled;
using TMPro;
using UnityEngine; using UnityEngine;
using Object = UnityEngine.Object; using Object = UnityEngine.Object;