Exemple #1
0
 void FixedUpdate()
 {
     if (isChangeNeeded)
     {
         Debug.Log(interactionObject.power);
         if (interactionObject.power <= interactionObject.minPowerValue)
         {
             interactionObject.OnDestroy();
         }
         if (summaryValue > maxValue)
         {
             Debug.Log("Here");
             interactionObject.OnDestroy();
             StopChangeScale();
         }
         interactionObject.ChangeHealth(valuePerFrame);
         summaryValue += absoluteValuePerFrame;
     }
 }