Assets/Scripts/TowerDefense/Economy/LootDrop.cs
@@ -51,7 +51,8 @@
      {
         m_DamageableBehaviour.configuration.died -= OnDeath;
         //
            if (LevelManager.instanceExists)
            {
         // 当前LootDrop所在的Agent死亡后,给全局的CurrencyManager增加金币.
         // 当前Agent死亡之后,需要在对手盘加入新的Agent
         LevelManager levelManager = LevelManager.instance;
@@ -85,7 +86,13 @@
               opmgr.m_WaveManager.SpawnAgent(agent.waveLineID, sd.hp,sd.speed, attid );
            }*/
         }
            }
            else if (EndlessLevelManager.instanceExists)
            {
                Agent agent = gameObject.GetComponent<Agent>();
                if (agent != null)
                    EndlessLevelManager.instance.Currency.AddCurrency(lootDropped);
            }
      }
   }
}