Ejemplo n.º 1
0
 public void ResetPlayersScore()
 {
     foreach (GameObject p in players)
     {
         playerdata pdata = p.GetComponent <playerdata>();
         pdata.RpcUpdateScore(0);
     }
 }
Ejemplo n.º 2
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);
             }
         }
     }
 }