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); } }
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(); }
private void PostInstantiator(uLink.NetworkView instance, uLink.NetworkMessageInfo info) { instance.BroadcastMessage("uLink_OnNetworkInstantiate", info, SendMessageOptions.DontRequireReceiver); }