fgm24/Assets/Scripts/Player/Other/MoveData.cs

23 lines
517 B
C#
Raw Normal View History

2024-03-01 19:44:22 +01:00
using System;
using System.Collections;
using System.Collections.Generic;
using Unity.Netcode;
using UnityEngine;
public struct MoveData : INetworkSerializable
{
public Vector2 Movement;
public Vector2 Look;
public void NetworkSerialize<T>(BufferSerializer<T> serializer) where T : IReaderWriter
{
serializer.SerializeValue(ref Movement);
//serializer.SerializeValue(ref Look); // Not used yet
}
}
public interface IMoveData
{
public event Action<MoveData> OnNewMoveData;
2024-03-17 17:31:27 +01:00
}