mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
完美
This commit is contained in:
@@ -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());
|
||||
|
||||
}
|
||||
|
@@ -44,6 +44,7 @@ namespace Game.JNGFrame.View.Entity
|
||||
|
||||
public override void ViewRemove(GameObject view)
|
||||
{
|
||||
view.transform.DOKill();
|
||||
Object.Destroy(view);
|
||||
}
|
||||
}
|
||||
|
@@ -41,6 +41,7 @@ namespace Game.JNGFrame.View.Entity
|
||||
|
||||
public override void ViewRemove(GameObject view)
|
||||
{
|
||||
view.transform.DOKill();
|
||||
Object.Destroy(view);
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user