Exemplo n.º 1
0
        protected override async void OnCreate()
        {
            config = await Addressables.LoadAssetAsync <DrillConfig>("configs/drill").Task;
            await LoadConfigs(config.workers);

            foreach (WorkerConfig workerConfig in config.workers)
            {
                await Register(workerConfig);
            }

            blockGroupSystem = World.GetOrCreateSystem <BlockGroupSystem>();
            bounceCurve      = CurveUtil.GetCurveBlobReference(config.drillBounceCurve.keys);
            moveCurve        = CurveUtil.GetCurveBlobReference(config.drillMoveCurve.keys);
        }
 protected override void OnCreate()
 {
     groupSystem         = World.GetOrCreateSystem <BlockGroupSystem>();
     commandBufferSystem = World.GetOrCreateSystem <EntityCommandBufferSystem>();
 }
 protected override void OnCreate()
 {
     blockGroupSystem = World.GetOrCreateSystem <BlockGroupSystem>();
     SetCurrentMode(GameMode.MainMenu);
 }