Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 private void Awake()
 {
     _reticle     = FindObjectOfType <ReticleImg>();
     cameraFollow = GetComponentInParent <CameraFollow>();
 }