Exemplo n.º 1
0
 void Start()
 {
     if (gameObject.tag == "Player")
     {
         AnalyticLogic.AnalyticLevel(1);
         if (Connection.IsServer)
         {
             PlayerInfo.RequestExp();
         }
         else
         {
             SetExp(80);
         }
     }
 }
Exemplo n.º 2
0
    public void SetLvl(int newLvl)
    {
        if (newLvl != 0)
        {
            Lvl = newLvl;
        }
        else
        {
            Lvl = 1;
        }
        AnalyticLogic.AnalyticLevel(Lvl);

        PreviousExpLvl = ExpList[Lvl - 1];
        NextExpLvl     = ExpList[Lvl];
    }