RPC called from another class?
Hello! I have this RPC, in another class called WaysOfWinning (creative name);
[PunRPC]
public void NextRound()
{
Debug.Log("Next round");
}
then in another script, I call this;
WaysOfWining.PV.RPC("AttackersWinBySendingUplink", RpcTarget.AllViaServer);
is that correct, or do i call;
WaysOfWining.PV.RPC("WaysOfWining.AttackersWinBySendingUplink", RpcTarget.AllViaServer);
TIA!
[PunRPC]
public void NextRound()
{
Debug.Log("Next round");
}
then in another script, I call this;
WaysOfWining.PV.RPC("AttackersWinBySendingUplink", RpcTarget.AllViaServer);
is that correct, or do i call;
WaysOfWining.PV.RPC("WaysOfWining.AttackersWinBySendingUplink", RpcTarget.AllViaServer);
TIA!
0