diff --git a/INetworkArena.cs b/INetworkArena.cs
index b9b40cd..b27aeb6 100644
--- a/INetworkArena.cs
+++ b/INetworkArena.cs
@@ -22,7 +22,7 @@ public interface INetworkArena
/// The unique ID of the entity to create
/// The initial state of the created entity
/// The created INetworkEntity, which will be tracked by the NetworkManager
- INetworkEntity RequestCreateEntity(object entityData);
+ INetworkEntity RequestCreateEntity(long ownerId, object entityData);
///
/// Called by the network manager when a message is received to destroy an entity.
diff --git a/NetworkManager.cs b/NetworkManager.cs
index 4632f27..e3683fe 100644
--- a/NetworkManager.cs
+++ b/NetworkManager.cs
@@ -435,7 +435,7 @@ private void CreateEntity(long ownerId, long entityId, object payload, double ti
if(targetEntity == null)
{
- targetEntity = GameArena.RequestCreateEntity(payload);
+ targetEntity = GameArena.RequestCreateEntity(ownerId, payload);
}
else
{
@@ -622,6 +622,7 @@ private void SendDataMessage(INetworkEntity entity, NetworkMessageType action, N
SendDataMessage(entity.EntityId, entity.OwnerId, payload, action, recipient);
}
+ // from https://stackoverflow.com/questions/6803073/get-local-ip-address
public string GetLocalIpAddress()
{
var host = Dns.GetHostEntry(Dns.GetHostName());