public void Update() { age += Time.deltaTime; if (age >= lifeSpan) { microbe.Die(); } }
/// <summary> /// Kill the microbe. /// </summary> /// <param name="microbe">The microbe to kill.</param> private static void Kill(Microbe microbe) { microbe.Die(); }