public void OnHitTarget(PathTraverser traverser, PathNode current, PathNode next) { if (current.CompareTag("Bin")) { // Also remove this item from the avo spawner, because otherwise another won't spawn until this one has poofed AvoSpawnerTag tag = GetComponent <AvoSpawnerTag>(); if (tag) { tag.Spawner.OnSpawnedItemDestroyed(tag); } PerformDestroy(despawnTime); } }