/// <summary> /// Moves a network aware object to a remote node. /// Adjusts the objects position and rotation on the receiving node according to the given relative parameters. /// </summary> /// <param name="obj">The network aware object which you want to move to another remote node</param> /// <param name="target">The <see cref="uLink.NetworkPeer"/> which <c>obj</c> should be moved to</param> /// <param name="relativePos">The position which the <c>obj</c>'s position should be set to in other node</param> /// <param name="relativeRot">The rotation which the <c>obj</c>'s rotation should be set to in other node</param> /// <param name="flags">The <see cref="uLink.NetworkP2PHandoverFlags"/> which sets the setting of HandOver</param> /// <param name="handoverData">The data which can be used in <see cref="NetworkP2P.uLink_OnHandoverNetworkView"/> in other node</param> /// <remarks> /// Can only be invoked server-side. /// owner redirection and instantiations can be customized /// using the <c>flags</c> argument. /// </remarks> public void Handover(Object obj, NetworkPeer target, Vector3 relativePos, Quaternion relativeRot, NetworkP2PHandoverFlags flags, params object[] handoverData) { base.Handover(Require(obj), target, relativePos, relativeRot, flags, handoverData); }
/// <summary> /// Moves a network aware object to a remote node. /// </summary> /// <param name="obj">The network aware object which you want to move to another remote node</param> /// <param name="target">The <see cref="uLink.NetworkPeer"/> which <c>obj</c> should be moved to</param> /// <param name="flags">The <see cref="uLink.NetworkP2PHandoverFlags"/> which sets the setting of HandOver</param> /// <param name="handoverData">The data which can be used in <see cref="NetworkP2P.uLink_OnHandoverNetworkView"/> in other node</param> /// <remarks> /// Can only be invoked server-side. /// owner redirection and instantiations can be customized /// using the <c>flags</c> argument. /// </remarks> public void Handover(Object obj, NetworkPeer target, NetworkP2PHandoverFlags flags, params object[] handoverData) { base.Handover(Require(obj), target, flags, handoverData); }