private void Item_ItemTriggering(object sender, Vector2 position) { if (sender is ConsumableItem consumableItem) { var bonus = consumableItem.CalcBonus(position); scoreManager.AddOneTimeBonus(bonus); consumableItem.DestroyGameObject(); } else if (sender is Item item) { var bonus = item.CalcBonus(position); scoreManager.AddBonus(bonus * Time.deltaTime); } }