Last active
October 23, 2018 14:48
-
-
Save tsubaki/38d5b82758d431eeb08b1007cb8e2b35 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; | |
public class TestSystem3 : JobComponentSystem | |
{ | |
protected override JobHandle OnUpdate(JobHandle inputDeps) | |
{ | |
return new Process().ScheduleSingle(this, inputDeps); | |
} | |
struct Process : IJobProcessComponentData<SampleData3> | |
{ | |
public void Execute(ref SampleData3 data) | |
{ | |
Debug.Log("sample3"); | |
} | |
} | |
} |
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; | |
public class TestSystem4 : JobComponentSystem | |
{ | |
protected override JobHandle OnUpdate(JobHandle inputDeps) | |
{ | |
return new Process().ScheduleSingle(this, inputDeps); | |
} | |
struct Process : IJobProcessComponentData<SampleData3> | |
{ | |
public void Execute(ref SampleData3 data) | |
{ | |
Debug.Log("sample4"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment