private void BloomReticle() { RaycastHit hit; bool isBlooming = false; if (mouseInteract.pickedUpItem == null && Physics.Raycast(camera.transform.position, camera.transform.forward, out hit, hoverRange)) { GameObject obj = hit.collider.gameObject; if (obj.GetComponent <Interactable>()) { Interactable interactable = obj.GetComponent <Interactable>(); Debug.Log("bloom"); if (interactable.doBloom) { isBlooming = true; if (!reticle.animating) { reticle.AnimateUpdateReticle( interactable.bloomTime, reticle.baseSegments + interactable.bloomSegments, reticle.baseWidth + interactable.bloomWidth, reticle.baseSize + interactable.bloomSize); } } } } if (!isBlooming && !reticle.animating) { reticle.AnimateUpdateReticle( 0.3f, reticle.baseSegments, reticle.baseWidth, reticle.baseSize); } }