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