Exemplo n.º 1
0
    void Start()
    {
        player               = GameObject.FindGameObjectWithTag("Player");
        controlScript        = player.GetComponent <PlayerControls>();
        interactWithUIObject = player.GetComponent <InteractWithUIObject>();
        grabbingItem         = player.GetComponentInChildren <GrabItem>();

        CamToMouse = player.GetComponentInChildren <CameraToMouse>();
    }