增加受击泛红效果
This commit is contained in:
@@ -57,6 +57,13 @@ namespace GameFramework
|
||||
UpdateSoulCount(ScoreManager.Instance != null ? ScoreManager.Instance.CurrentScore : 0);
|
||||
|
||||
UpdateLifeIcons();
|
||||
|
||||
// 自动创建受击泛红特效(如果场景中没有)
|
||||
if (FindObjectOfType<DamageFlashOverlay>() == null)
|
||||
{
|
||||
var overlayObj = new GameObject("DamageFlashOverlay");
|
||||
overlayObj.AddComponent<DamageFlashOverlay>();
|
||||
}
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
|
||||
Reference in New Issue
Block a user