using System; using System.Collections; using System.Collections.Generic; using Unity.Netcode; using Unity.VisualScripting.YamlDotNet.Core.Tokens; using UnityEngine; public struct MoveData : INetworkSerializable { public Vector2 Movement; public Vector2 Look; public void NetworkSerialize(BufferSerializer serializer) where T : IReaderWriter { serializer.SerializeValue(ref Movement); //serializer.SerializeValue(ref Look); // Not used yet } } public interface IMoveData { public event Action OnNewMoveData; }