fix():修复重启时花屏效果未关闭的BUG
This commit is contained in:
@@ -45,5 +45,12 @@ namespace Script.Gameplay.Global
|
||||
yield return new WaitForSeconds(glitchDuration);
|
||||
SetFeatureActive(false);
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
// 确保在销毁时禁用特效
|
||||
SetFeatureActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user