netwo
This commit is contained in:
@@ -201,14 +201,15 @@ namespace Game
|
||||
|
||||
PlayerActor playerActor = PrefabManager.SpawnPrefab(playerPrefab).As<PlayerActor>();
|
||||
NetworkReplicator.AddObject(playerActor);
|
||||
playerActor.hai = 123;
|
||||
playerActor.Initialize(clientId);
|
||||
playerActor.IsActive = true;
|
||||
|
||||
|
||||
playerActor.Teleport(spawnPosition, spawnAngles);
|
||||
//NetworkReplicator.SetObjectOwnership(playerActor, clientId);
|
||||
|
||||
NetworkReplicator.SpawnObject(playerActor);
|
||||
//playerActor.Initialize(clientId);
|
||||
//playerActor.hai = 345;
|
||||
|
||||
}
|
||||
|
||||
public void OnPlayerInit()
|
||||
|
||||
Reference in New Issue
Block a user