This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-09-13 04:06:25 +08:00
parent bf7b5b1160
commit ced7fdce74
72 changed files with 25000 additions and 8157 deletions

View File

@@ -2,6 +2,7 @@
using Game.Logic.Entity.Nodes.Component;
using Game.Logic.Entity.Nodes.Component.Components;
using JNGame.Math;
using UnityEngine;
namespace Game.JNGFrame.Logic.Entity.Controller
{
@@ -50,6 +51,7 @@ namespace Game.JNGFrame.Logic.Entity.Controller
{
if (Input.SInput<IDPlayer>(Auth) is not IDPlayer input || input.MoveVector is null) return;
Debug.Log($"收到移动数据: ${input.MoveVector.ToLVector2()}");
Move.Vector(input.MoveVector.ToLVector2());
}

View File

@@ -44,6 +44,7 @@ namespace Game.JNGFrame.View.Entity
public override void ViewRemove(GameObject view)
{
view.transform.DOKill();
Object.Destroy(view);
}
}

View File

@@ -41,6 +41,7 @@ namespace Game.JNGFrame.View.Entity
public override void ViewRemove(GameObject view)
{
view.transform.DOKill();
Object.Destroy(view);
}
}

View File

@@ -26,7 +26,6 @@ namespace Game.JNGFrame.View.Entity
//更新位置
if (data.Value.Position != null)
{
view.transform.DOKill();
view.transform.DOMove(data.Value.Position.ToVector3(), 0.5f);
}
@@ -59,6 +58,7 @@ namespace Game.JNGFrame.View.Entity
public override void ViewRemove(GameObject view)
{
view.transform.DOKill();
Object.Destroy(view);
}
}