public void ResetPlayersScore() { foreach (GameObject p in players) { playerdata pdata = p.GetComponent <playerdata>(); pdata.RpcUpdateScore(0); } }
public void CheckCurQuests() { foreach (Quest q in activeQuests) { if (q.isComplete) { foreach (GameObject g in q.winners) { playerdata pd = g.GetComponent <playerdata>(); pd.RpcUpdateScore(pd.scoref + q.reward); } } } }