private void Start() { _self = transform.gameObject; _user = GameObject.Find("HMD Camera"); _microSelectionOrigin = GameObject.Find("MicroSelectionOrigin"); _lerpTarget = GameObject.Find("IndActScaled"); _objectSelection = _user.GetComponent <ObjectSelection>(); _indirectManipulation = GameObject.Find("SceneController").GetComponent <IndirectManipulation>(); OriginalParent = transform.parent; if (_objectSelection.GlobalSelectableObjects.Contains(_self) == false) { _objectSelection.GlobalSelectableObjects.Add(_self); } }
private void Start() { _self = transform.gameObject; _user = GameObject.Find("HMD Camera"); _objectSelection = _user.GetComponent <ObjectSelection>(); _selectionTarget = GameObject.Find("MultiSelectTarget"); _posXRef = GameObject.Find("MSObjXRef"); _posYRef = GameObject.Find("MSObjYRef"); _xAngRef = GameObject.Find("MSXAngRef"); _yAngRef = GameObject.Find("MSYAngRef"); _xRRef = GameObject.Find("MSXRRef"); _xLRef = GameObject.Find("MSXLRef"); _yTRef = GameObject.Find("MSYTRef"); _yBRef = GameObject.Find("MSYBRef"); _objProx = GameObject.Find("MSObjProx"); _grab = GameObject.Find("MSIndAct"); _lr = GetComponent <LineRenderer>(); _lerpTarget = GameObject.Find("IndActScaled"); _indirectManipulation = GameObject.Find("SceneController").GetComponent <IndirectManipulation>(); _mf = GetComponent <MeshFilter>(); _m = _mf.mesh; }