This commit is contained in:
parent
24e1368296
commit
08ecf8d7dc
|
|
@ -1,4 +1,4 @@
|
|||
using DG.Tweening;
|
||||
|
||||
using UnityEngine;
|
||||
using NaughtyAttributes;
|
||||
using UnityEngine.EventSystems;
|
||||
|
|
@ -79,17 +79,6 @@ namespace Framework.Scripts.Runtime.Engine.Engine.Camera.CameraControl
|
|||
SetCameraPositionAndRotation();
|
||||
}
|
||||
|
||||
public void MoveTargetTo(Vector3 newPosition, float newfloat)
|
||||
{
|
||||
target.transform.DOMove(newPosition, 2).OnUpdate(() =>
|
||||
{
|
||||
Vector3 mPosition = storeRotation * new Vector3(0.0F, 0.0F, -Distance) + target.transform.position;
|
||||
cameraTransform.position = mPosition;
|
||||
CameraTargetPosition = target.transform.position;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void SetCameraPositionAndRotation()
|
||||
{
|
||||
//Vector3 position = rotation * new Vector3(0.0f, 0.0f, -11) + target.transform.position;
|
||||
|
|
|
|||
Loading…
Reference in New Issue