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;
        }
    }
}