Пример #1
0
        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));
        }
Пример #2
0
        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));
            }
        }
Пример #3
0
        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();
            }
        }
Пример #4
0
 private void UpdateValue()
 {
     _value?.SetValue(transform.localPosition);
 }
Пример #5
0
 private void UpdateValue()
 {
     _value?.SetValue(_rigidbody.velocity);
 }
Пример #6
0
 private void UpdateValue()
 {
     _value?.SetValue(transform.eulerAngles);
 }