private void Awake() { cameraFollow = GetComponentInParent <CameraFollow>(); _reticle = FindObjectOfType <ReticleImg>(); loader = _reticle.transform.GetChild(0).gameObject.GetComponent <Image>(); item = GetComponent <VRInteractiveItem>(); _enabledColor = this.gameObject.GetComponent <Image>().color; _disabledColor = Color.white; this.gameObject.GetComponent <Image>().color = _disabledColor; }
private void Awake() { _reticle = FindObjectOfType <ReticleImg>(); cameraFollow = GetComponentInParent <CameraFollow>(); }