breakpoint

This commit is contained in:
CortexCore
2023-06-17 16:30:53 +08:00
parent cd02761be7
commit 877ba6e548
88 changed files with 8715 additions and 988 deletions

View File

@@ -11,11 +11,15 @@ namespace BITFALL.Entites
{
public class EntityGDNetPlayer : EntityComponent
{
[SerializeField, SerializeReference, SubclassSelector]
private INetClient netClient;
[SerializeField, SerializeReference, SubclassSelector]
private INetProvider netProvider;
public override void OnStart()
{
entity.Id = Guid.NewGuid().GetHashCode();
BITNet.OnConnected+=OnConnected;
BITNet.OnDisconnect += OnDisconnect;
netClient.OnConnected+=OnConnected;
netClient.OnDisconnected += OnDisconnect;
IEntity.LocalPlayer = entity;
IEntity.OnSpawnLocalPlayer(entity);
}

View File

@@ -13,7 +13,6 @@ namespace BITFALL.Entites
{
public override void OnCreate()
{
BITNet.AddRpcHandle(this);
}
}
}