breakpoint
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -13,7 +13,6 @@ namespace BITFALL.Entites
|
||||
{
|
||||
public override void OnCreate()
|
||||
{
|
||||
BITNet.AddRpcHandle(this);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user