Example #1
0
 private void Update()
 {
     if (photonView.isMine)
     {
         if (Level == 0)
         {
             return;
         }
         if (Exp >= 100 * Level)
         {
             GameObject.Find("NetworkManager").GetComponent <NetworkManager>().CallIfPlayerLevelUpped();
             Exp -= (100 * Level);
             playerChara.LevelUpMethod();
             if (levelFillImage != null)
             {
                 levelFillImage.fillAmount = 0;
             }
         }
     }
 }