private void OnCountChanged(Virus virus, int previousCount, int currentCount) { if (DestroyIfFatal(virus)) { return; } AnimateCount(virus.animator, currentCount); if (virus.host == null) { return; } AnimateCount(virus.host.animator, currentCount); }
private static void TryTransmitObject(GameObject cloneObject, Collider2D potentialHost) { Virus virus = cloneObject.GetComponent <Virus>(); TransmissionSystem.TryTransmit(virus, potentialHost); }