Esempio n. 1
0
 public void DropFruit()
 {
     if (stage == "stage5")
     {
         int countEv = UnityEngine.Random.Range(mincountFruit, maxcountFruit);
         Inv.GetHarvestToInventory(countEv, fruitId, "harvest");
         ExpBar.AddExp(countExpiriens);
         if (iterationFruit >= 1)
         {
             iterationFruit--;
             stage = "stage3";
             shangeSprite("stage3");
             stageThree = buffStageThree;
             stageFour  = buffStageFour;
             growing    = true;
         }
         else
         {
             if (stage != "stage6")
             {
                 stage = "stage6";
                 shangeSprite("stage6");
             }
         }
     }
 }