Hello,
I am currently working on making buttons ans switches networked so that they perform what is needed on all client.
I am running into the error "RPC call failed because the script couldn't be loaded. The function was 'ToggleSwitch'." on a few of my scripts. Most work fine though.
Here is the code:
`
function OnMouseDown ()
{
//ToggleSwitch();
networkView.RPC("ToggleSwitch", RPCMode.All);
}
@RPC
function ToggleSwitch()
{
switch (lcu_static_variables.back_text)
{
.....
}
}
`
the exact same setup works in other scripts... Any ideas what is wrong?
I’ve received the same runtime error message and I think that my GameObject hasn’t got any missing script attatched to…I’ve revised a lot of times and well…I don’t know what can be…