refactor: 将淡入淡出迁移到 ScreenTransitionPanel
- 将 BaseYarnCommand、FixSystemNew 各状态、GameManager、 SaveSystem、PlayToolPanel 中的 PlayToolPanel 遮罩调用 统一迁移到 ScreenTransitionPanel - 从 PlayToolPanel 移除 _fadeImage 及相关 fade 方法 - 从 Play Tool Panel Prefab 移除 Fade Image 子对象
This commit is contained in:
@@ -47,28 +47,28 @@ namespace AibisDream
|
||||
[YarnCommand("fade_in")]
|
||||
public static IEnumerator FadeIn(float duration = 1)
|
||||
{
|
||||
var panel = UIManager.Instance.GetPanel<PlayToolPanel>();
|
||||
var panel = UIManager.Instance.GetPanel<ScreenTransitionPanel>();
|
||||
return panel.FadeInAsync(duration);
|
||||
}
|
||||
|
||||
[YarnCommand("fade_out")]
|
||||
public static IEnumerator FadeOut(float duration = 1)
|
||||
{
|
||||
var panel = UIManager.Instance.GetPanel<PlayToolPanel>();
|
||||
var panel = UIManager.Instance.GetPanel<ScreenTransitionPanel>();
|
||||
return panel.FadeOutAsync(duration);
|
||||
}
|
||||
|
||||
|
||||
[YarnCommand("fade_in_sync")]
|
||||
public static void FadeInSync(float duration = 1)
|
||||
{
|
||||
var panel = UIManager.Instance.GetPanel<PlayToolPanel>();
|
||||
var panel = UIManager.Instance.GetPanel<ScreenTransitionPanel>();
|
||||
panel.FadeInSync(duration);
|
||||
}
|
||||
|
||||
[YarnCommand("fade_out_sync")]
|
||||
public static void FadeOutSync(float duration = 1)
|
||||
{
|
||||
var panel = UIManager.Instance.GetPanel<PlayToolPanel>();
|
||||
var panel = UIManager.Instance.GetPanel<ScreenTransitionPanel>();
|
||||
panel.FadeOutSync(duration);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user