public void Execute(int index) { var data = ItemData; data.Update(Dt); ItemData = data; }
private void Update() { if (CurrentItem == null) { return; } var itemData = new Item.Data(CurrentItem); var job = new ItemCooldownJob { ItemData = itemData, Dt = Time.deltaTime }; var jobHandle = job.Schedule(Items.Length, 1); jobHandle.Complete(); }