chenxin
2020-11-26 392f839c8ddff781479e3383d9b1fd99c8ed663c
Assets/Scripts/TowerDefense/Economy/LootDrop.cs
@@ -20,7 +20,7 @@
        /// <summary>
        /// The amount of loot/currency dropped when object "dies"
        /// </summary>
        public int lootDropped = 1;
        public int lootDropped;
        /// <summary>
        /// The attached DamagableBehaviour
@@ -114,6 +114,8 @@
        private void PlayDropGold(int lootDropped, Vector3 worldPos)
        {
            if (lootDropped == 0) return;
            GameObject mainUI = GameObject.Find("MainUI");
            GameObject dropGoldPrefab = Resources.Load<GameObject>("Prefabs/DropGold");
            GameObject obj = Poolable.TryGetPoolable(dropGoldPrefab);