void OnSpawn(RPC.SpawnPayload payload) { Debug.Log("<< OnSpawn"); var position = new Vector3(payload.Position.X, payload.Position.Y, payload.Position.Z); Instantiate(itemPrefab, position, Quaternion.identity); }
void OnSpawn(RPC.SpawnPayload payload) { Debug.Log("<< OnSpawn"); SpawnItem(payload.Item); }
public Spawn(SpawnPayload payload) { this.Payload = payload; }
void OnSpawn(RPC.SpawnPayload response) { Debug.Log("<< OnSpawn"); SpawnItem(response.Item); }