private void OnAddedEntityHandler(object sender, ILootEntity loot) { loot.OnPickUp += OnPickUpHandler; }
private void OnPickUpHandler(object sender, ILootEntity loot) { loot.OnPickUp -= OnPickUpHandler; LootRemover.RemoveEntity(loot); }
public void Initialization(ILootEntity loot) { _loot = loot.CheckNull(); transform.position = loot.StartPosition; }