Beispiel #1
0
 private void Update()
 {
     if (genes.GetAllGenes().Count > 0)
     {
         if (delta > genes.GrowthTime())
         {
             delta = 0;
             if (watered)
             {
                 GrowingUp();
             }
         }
         AddTime(Time.deltaTime);
     }
 }
Beispiel #2
0
 private void Update()
 {
     if (genes.GetAllGenes().Count > 0)
     {
         if (delta > genes.GrowthTime())
         {
             delta = 0;
             if (watered && weeded)
             {
                 GrowingUp();
             }
         }
         delta += Time.deltaTime;
     }
 }