增加收获属性逻辑,优化掉落物表现效果
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using SepCore.AsyncTask;
|
||||
using SepCore.Components;
|
||||
using SepCore.Definition;
|
||||
using SepCore.Event;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
@@ -75,13 +74,7 @@ namespace SepCore.Entity
|
||||
{
|
||||
if (Random.value < EnemyData.DropPercent)
|
||||
{
|
||||
int coinCount = GameEntry.Luban.Global.DropEntityCoinCount;
|
||||
int expCount = GameEntry.Luban.Global.DropEntityExpCount;
|
||||
var data = new DropData(coinCount, expCount, GameEntry.Entity.NextId())
|
||||
{
|
||||
Position = CachedTransform.position
|
||||
};
|
||||
GameEntry.Entity.ShowDropAsync(data).Forget();
|
||||
GameEntry.Event.Fire(this, DropSpawnRequestedEventArgs.Create(CachedTransform.position));
|
||||
}
|
||||
|
||||
base.OnDead(attacker);
|
||||
|
||||
Reference in New Issue
Block a user