Пример #1
0
 private void OverrideDestroyer(uLink.NetworkView instance)
 {
     if (autoDestroyAfterMessage)
     {
         instance.BroadcastMessage(broadcastMessage, SendMessageOptions.DontRequireReceiver);
         Destroy();
     }
     else
     {
         // if we're relying on the message receiver for cleanup, then make sure there is one.
         instance.BroadcastMessage(broadcastMessage, SendMessageOptions.RequireReceiver);
     }
 }
Пример #2
0
    private void Destroyer(uLink.NetworkView instance)
    {
        Profiler.BeginSample("Destroy: " + networkView.ToPrefabString());

        if (autoDestroyAfterMessage)
        {
            instance.BroadcastMessage(broadcastMessage, SendMessageOptions.DontRequireReceiver);
            Destroy(networkView.gameObject);
        }
        else
        {
            // if we're relying on the message receiver for cleanup, then make sure there is one.
            instance.BroadcastMessage(broadcastMessage, SendMessageOptions.RequireReceiver);
        }

        Profiler.EndSample();
    }
Пример #3
0
 private void PostInstantiator(uLink.NetworkView instance, uLink.NetworkMessageInfo info)
 {
     instance.BroadcastMessage("uLink_OnNetworkInstantiate", info, SendMessageOptions.DontRequireReceiver);
 }