public void DoUpdate(Virus virus) { float t = (Time.time - _startTime) / _destroyTime; if (t <= 1.0f) { virus.transform.localScale = Vector2.Lerp(_startScale, _destinationScale, t); } else { virus.transform.localScale = _startScale; virus.DestroyVirus(); } }