mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
完美
This commit is contained in:
@@ -6,11 +6,9 @@ using AppGame.Systems.CServer;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using DotRecast.Core.Collections;
|
||||
using Game.Input;
|
||||
using Game.JNGFrame.Logic;
|
||||
using Game.JNGFrame.Logic.Entity;
|
||||
using Game.JNGFrame.View;
|
||||
using Game.JNGState.Logic.Data;
|
||||
using Game.Logic.System;
|
||||
using Game.Logic.System.Logic;
|
||||
using Game.Logic.System.Usual;
|
||||
using JNGame.Sync.State.Tile;
|
||||
@@ -28,7 +26,7 @@ namespace AppGame.Sync
|
||||
/// </summary>
|
||||
public class JNGTileServerSystem : JNSSTileServerService
|
||||
{
|
||||
|
||||
|
||||
protected List<JNFrameInput> Inputs = new();
|
||||
|
||||
//区块Socket
|
||||
|
@@ -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