18 lines
490 B
C#
18 lines
490 B
C#
namespace ET
|
|
{
|
|
public static class SceneHelper
|
|
{
|
|
public static async ETTask LoadSceneAsync(string name, bool isAddtion = false)
|
|
{
|
|
Game.EventSystem.Publish_Sync(new ET.EventType.TranslateSceneStart
|
|
{
|
|
isAutoEnd = true
|
|
});
|
|
await ResourceHelper.LoadSceneAsync(name, isAddtion);
|
|
Game.EventSystem.Publish_Sync(new ET.EventType.TranslateSceneEnd
|
|
{
|
|
|
|
});
|
|
}
|
|
}
|
|
} |