Files
Fishing2/Assets/Scripts/OnSceneCreate_Init.cs

29 lines
902 B
C#

using Fantasy;
using Fantasy.Async;
using Fantasy.Event;
using Log = NBC.Log;
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;
}
}
}