// Use this for initialization void Start() { rb = GetComponent <Rigidbody2D> (); anim = GetComponent <Animator> (); minpute = GetComponent <MainInputManager> (); gch = GetComponentInChildren <GroundCheckerScript> (); sprit = GetComponent <SpriteRenderer> (); speed = 10; }
void Start() { inputManager = FindObjectOfType <MainInputManager>(); inputManager.inputActions.XRIRightHand.TeleportSelect.canceled += ctx => OnTeleportSelectCancelled(); inputManager.inputActions.XRIRightHand.TeleportModeActivate.performed += ctx => OnTeleportModeActivate(); xrInteractorLineVisual.enabled = false; teleportReticleObject.SetActive(false); teleportLineRenderer.enabled = false; }