Skip to content

Commit edda126

Browse files
committed
Merge branch 'master' into ILRuntime
2 parents c5c46c1 + 363c90f commit edda126

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Assets/Game/Scripts/Base/GameMode.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,21 @@ IEnumerator Start()
8787
#endregion
8888
}
8989

90-
}
90+
91+
private void Update()
92+
{
93+
GameFrameworkMode.Update();
94+
}
95+
96+
private void FixedUpdate()
97+
{
98+
GameFrameworkMode.FixedUpdate();
99+
}
100+
101+
private void OnDestroy()
102+
{
103+
GameFrameworkMode.ShutDown();
104+
}
105+
106+
}
91107
}

Assets/Game/Scripts/Editor/GameModeEditor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ public override void OnInspectorGUI()
211211
#endregion
212212

213213
GUILayout.EndVertical();
214+
215+
//保存设置
216+
EditorUtility.SetDirty(_gameMode);
214217
}
215218

216219

0 commit comments

Comments
 (0)