这对吗

This commit is contained in:
2025-11-25 15:29:35 +08:00
parent d608f1a07c
commit 79a02f99e0
11 changed files with 529 additions and 182 deletions

View File

@@ -58,17 +58,20 @@ namespace WulaFallenEmpire
return graphic;
}
// 完全重写 DrawAt 方法,实现自定义渲染系统
protected override void DrawAt(Vector3 drawLoc, bool flip = false)
{
// 不调用基类的 DrawAt完全自定义渲染
// 更新悬浮动画
UpdateHoverAnimation();
// 绘制所有配置的图形层
DrawGraphicLayers(drawLoc, flip);
// 新增:绘制护盾
var shieldComp = this.GetComp<ThingComp_AreaShield>();
if (shieldComp != null)
{
shieldComp.PostDraw();
}
}
// 绘制所有图形层