Files
Fishing2NetTest/Assets/Scripts/OnSceneCreate_Init.cs
2026-03-06 09:44:00 +08:00

28 lines
880 B
C#

using Fantasy;
using Fantasy.Async;
using Fantasy.Event;
namespace NBF.Fishing2
{
public class OnSceneCreate_Init : AsyncEventSystem<OnCreateScene>
{
protected override async FTask Handler(OnCreateScene self)
{
var scene = self.Scene;
if (scene.SceneRuntimeType == SceneRuntimeType.Root)
{
//Log.Info("OnSceneCreate_Init=== root");
// scene.AddComponent<ObjectWait>();
// scene.AddComponent<MapManageComponent>();
// scene.AddComponent<CameraComponent>();
// scene.AddComponent<CursorComponent>();
// var input = scene.AddComponent<InputComponent>();
// scene.AddComponent<SettingComponent>();
// InputManager = input;
}
await FTask.CompletedTask;
}
}
}