Declaration
public void SendMessageToOwner(string method, params object[] args)
Description
Sends messages to the network owner of the component.
Parameter
method | Name of the function defined in the Lua file of the ParaScript |
args | Variable parameter |
function RemoteMethodName(info,num)
print("Recv call ",info,num);
end
function OnNetSpawned()
self: SendMessageToOwner("RemoteMethodName","hello",123);
end