// ---------------------------------------------------- #region // Private Methods // 配列を回して計算するテスト(MainThread上で実行) void UpdateCalculation(float deltaTime) { for (int i = 0; i < this._maxObjectNum; ++i) { this._dokabenStructs[i] = JobParallelForTest.Rotate(deltaTime, this._dokabenStructs[i]); } }
// Jobで実行されるコード実行 public void Execute(int index) { DokabenStruct accessor = this.Accessor[index]; this.Accessor[index] = JobParallelForTest.Rotate(this.DeltaTime, accessor); }