Пример #1
0
        /// <summary />
        private void UpdateReticuleLocation(Vector3 relativeLocation, bool shouldNormalizeToGrid)
        {
            var absoluteLocation = _reticule.transform.parent.TransformPoint(relativeLocation);

            if (shouldNormalizeToGrid)
            {
                absoluteLocation = GridCoordinate.NormalizeToGrid(absoluteLocation);
            }

            _reticule.transform.position = absoluteLocation;

            ReticulePosition = absoluteLocation;
        }