导入敌人模型素材,统一经验和金币掉落物

This commit is contained in:
2026-10-04 18:54:11 +08:00
parent aaa8cf3ee2
commit 01374fec43
253 changed files with 13508 additions and 231 deletions
@@ -6,6 +6,8 @@ namespace SepCore.Simulation
{
SimulationStats Stats { get; }
int PickupCount { get; }
void Tick(in SimulationTickContext context);
void ClearSimulationState();
@@ -224,33 +224,18 @@ namespace SepCore.Simulation
continue;
}
if (entity is CoinEntity coin)
if (entity is DropEntity drop)
{
if (player != null)
{
coin.TryCollect(player);
drop.TryCollect(player);
}
else
{
var entityComponent = GameEntry.Entity;
if (entityComponent != null)
{
entityComponent.HideEntity(coin);
}
}
}
else if (entity is ExpEntity exp)
{
if (player != null)
{
exp.TryCollect(player);
}
else
{
var entityComponent = GameEntry.Entity;
if (entityComponent != null)
{
entityComponent.HideEntity(exp);
entityComponent.HideEntity(drop);
}
}
}