Exemplo n.º 1
0
 internal void OnFinishedInstantiate(Player player)
 {
     //get the player up to speed
     SendBuffer(player);
     try
     {
         FinishedInstantiation?.Invoke(player);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
 }
Exemplo n.º 2
0
 internal void OnFinishedInstantiate(Player player)
 {
     //get the player up to speed
     SendBuffer(player);
     try
     {
         FinishedInstantiation?.Invoke(player);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     if (MoreInstantiates != null)
     {
         var msg = Room.RoomGetMessage(4 + MoreInstantiates.AllocSize);
         msg.Write(RpcUtils.GetHeader(ReliabilityMode.Ordered, BroadcastMode.Server, MsgType.Internal));
         msg.Write(RandPRpcs.InstantiatePlus);
         Id.OnSerialize(msg);
         MoreInstantiates.OnSerialize(msg);
         Room.SendToPlayer(player, msg, ReliabilityMode.Ordered);
     }
 }