Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     rb      = GetComponent <Rigidbody2D> ();
     anim    = GetComponent <Animator> ();
     minpute = GetComponent <MainInputManager> ();
     gch     = GetComponentInChildren <GroundCheckerScript> ();
     sprit   = GetComponent <SpriteRenderer> ();
     speed   = 10;
 }
Beispiel #2
0
    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;
    }