Created
December 23, 2018 12:08
-
-
Save tsubaki/198496589e8e4aeb6f75e355df8d808d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Collections; | |
public class TestSystem10 : JobComponentSystem | |
{ | |
protected override JobHandle OnUpdate(JobHandle inputDeps) | |
{ | |
return new Process().ScheduleSingle(this, inputDeps); | |
} | |
[RequireComponentTag(typeof(SampleData4))] | |
struct Process : IJobProcessComponentData<SampleData2> | |
{ | |
public void Execute(ref SampleData2 data) | |
{ | |
Debug.Log("sample10"); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Collections; | |
public class TestSystem9 : JobComponentSystem | |
{ | |
protected override JobHandle OnUpdate(JobHandle inputDeps) | |
{ | |
return new Process().ScheduleSingle(this, inputDeps); | |
} | |
[RequireComponentTag(typeof(SampleData4))] | |
struct Process : IJobProcessComponentData<SampleData1> | |
{ | |
public void Execute(ref SampleData1 data) | |
{ | |
Debug.Log("sample9"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment