示例#1
0
    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);
    }
示例#2
0
 void OnSpawn(RPC.SpawnPayload payload)
 {
     Debug.Log("<< OnSpawn");
     SpawnItem(payload.Item);
 }
示例#3
0
 public Spawn(SpawnPayload payload)
 {
     this.Payload = payload;
 }
示例#4
0
    void OnSpawn(RPC.SpawnPayload response)
    {
        Debug.Log("<< OnSpawn");

        SpawnItem(response.Item);
    }