openableDoor1.js
if(correct)
{
R01aa.active = true; // Set gameobject to active
MoveAround.rad1a = false;
//choice = false;
score1 = score1 +100;
networkView.RPC("updateScores", RPCMode.Server, score1);
}
//server
@RPC
function updateScores(player: NetworkPlayer, nScore : int)
{
print("I am inside gamesetup updateScores RPC");
var newEntry : FPSPlayerNode = new FPSPlayerNode();
newEntry.playerName=name;
newEntry.score = nScore;
playerList.Add(newEntry);
networkView.RPC("UpdateScore", RPCMode.AllBuffered, player, nScore);
}
RPC call failed because the function ‘updateScores’ does not exist in the any script attached to’Door1’.
I don’t know what the problem with it. Please help