using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.Interaction.Toolkit; //this script attaches a listener function to a object to keep track of scaling functionallity public class OBJScaler : MonoBehaviour { // Start is called before the first frame update void Start() { XRGrabInteractable xRGrabInteractable = GetComponent(); xRGrabInteractable.onSelectEntered.AddListener((baseInteractor) => { GameObject.Find("ObjectSpawner").GetComponent().onGrab(gameObject); }); } }