protected override async void OnCreate() { commandBufferSystem = World.GetExistingSystem <EntityCommandBufferSystem>(); query = GetEntityQuery(typeof(Mark), typeof(Translation), typeof(Depth)); drillConfig = await Addressables.LoadAssetAsync <DrillConfig>("configs/drill").Task; effectMesh = drillConfig.hitEffect.GetDescription(); rotation = drillConfig.hitEffect.transform.rotation; }
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); }