public void Invoke() { var data = m_grid.Value; for (var y = 0; y < data.GetLength(1) - m_reducedIteration.y; y++) { for (var x = 0; x < data.GetLength(0) - m_reducedIteration.x; x++) { for (var z = 0; z < data.GetLength(2) - m_reducedIteration.z; z++) { m_currentPosition.SetValue(new Vector3(x, y, z)); m_continue.Invoke(); } } } m_currentPosition.SetValue(new Vector3(-1, -1, -1)); }
private void UpdateValue() { _value?.SetValue(_rigidbody.velocity); _forwardVelocity?.SetValue(Mathf.Abs(_rigidbody.velocity.z)); if (_isRunning && _isRunning.Value) { _runningTime?.SetValue(_runningTime.Value + (int)(Time.deltaTime * 1000f)); } }
public void Invoke() { var pos = m_pos.Value.Vector3Int(); for (var idx = m_idxOffset.Value; idx < IterationOffset.Length; idx++) { var offset = IterationOffset[idx]; m_iteratorIdx.SetValue(idx); m_cornerPos.SetValue(new Vector3(pos.x + offset.x, pos.y + offset.y, pos.z + offset.z)); m_continue.Invoke(); } }
private void UpdateValue() { _value?.SetValue(transform.localPosition); }
private void UpdateValue() { _value?.SetValue(_rigidbody.velocity); }
private void UpdateValue() { _value?.SetValue(transform.eulerAngles); }