/* * Sets reticle to found object's position and rotation * RaycastHit -> void */ public void SetReticleToObject() { _currentHit = _raycastManager.GetCurrentHit(); _reticleTransform.position = _currentHit.point; _reticleTransform.localScale = _originalScale * _currentHit.distance; _reticleTransform.rotation = Quaternion.FromToRotation(Vector3.forward, _currentHit.normal); }
// Calls SetPosition // void -> void public void CheckNormalFound() { _currentHit = raycastManager.GetCurrentHit(); SetPosition(_currentHit); }