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; } }