Exemple #1
0
 private void OnAddedEntityHandler(object sender, ILootEntity loot)
 {
     loot.OnPickUp += OnPickUpHandler;
 }
Exemple #2
0
 private void OnPickUpHandler(object sender, ILootEntity loot)
 {
     loot.OnPickUp -= OnPickUpHandler;
     LootRemover.RemoveEntity(loot);
 }
Exemple #3
0
        public void Initialization(ILootEntity loot)
        {
            _loot = loot.CheckNull();

            transform.position = loot.StartPosition;
        }