From 1fb1334d88d69c257eaf7763666018ab7f100805 Mon Sep 17 00:00:00 2001
From: GeWuYou <95328647+GeWuYou@users.noreply.github.com>
Date: Sun, 18 Jan 2026 20:23:37 +0800
Subject: [PATCH] =?UTF-8?q?refactor(template):=20=E7=A7=BB=E9=99=A4?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8E=A7=E5=88=B6=E5=99=A8=E6=A8=A1=E6=9D=BF?=
=?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=8E=A5=E5=8F=A3=E5=89=8D=E7=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 移除了 OnExit 方法的 IUiPage 接口前缀
- 移除了 OnPause 方法的 IUiPage 接口前缀
- 移除了 OnResume 方法的 IUiPage 接口前缀
- 移除了 OnShow 方法的 IUiPage 接口前缀
- 移除了 OnHide 方法的 IUiPage 接口前缀
---
Godot/script_templates/Node/PageControllerTemplate.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Godot/script_templates/Node/PageControllerTemplate.cs b/Godot/script_templates/Node/PageControllerTemplate.cs
index cdcd574..32d9672 100644
--- a/Godot/script_templates/Node/PageControllerTemplate.cs
+++ b/Godot/script_templates/Node/PageControllerTemplate.cs
@@ -47,7 +47,7 @@ public partial class _CLASS_ :_BASE_,IController,IUiPageBehaviorProvider,IUiPage
///
/// 页面退出时调用的方法
///
- public void IUiPage.OnExit()
+ public void OnExit()
{
}
@@ -56,7 +56,7 @@ public partial class _CLASS_ :_BASE_,IController,IUiPageBehaviorProvider,IUiPage
///
/// 页面暂停时调用的方法
///
- public void IUiPage.OnPause()
+ public void OnPause()
{
}
@@ -64,7 +64,7 @@ public partial class _CLASS_ :_BASE_,IController,IUiPageBehaviorProvider,IUiPage
///
/// 页面恢复时调用的方法
///
- public void IUiPage.OnResume()
+ public void OnResume()
{
}
@@ -72,7 +72,7 @@ public partial class _CLASS_ :_BASE_,IController,IUiPageBehaviorProvider,IUiPage
///
/// 页面显示时调用的方法
///
- public void IUiPage.OnShow()
+ public void OnShow()
{
}
@@ -80,7 +80,7 @@ public partial class _CLASS_ :_BASE_,IController,IUiPageBehaviorProvider,IUiPage
///
/// 页面隐藏时调用的方法
///
- public void IUiPage.OnHide()
+ public void OnHide()
{
}