Exemple #1
0
    public void ExitComputer()
    {
        ChangeCurrentScreen(loginScreen1);
        DeactivateGameObject(gameObject);
        InteractWithUIObject playerScript = currentPlayer.GetComponent <InteractWithUIObject>();

        playerScript.ExitInteraction();
        OnExit.Invoke();
    }
Exemple #2
0
    void Start()
    {
        player               = GameObject.FindGameObjectWithTag("Player");
        controlScript        = player.GetComponent <PlayerControls>();
        interactWithUIObject = player.GetComponent <InteractWithUIObject>();
        grabbingItem         = player.GetComponentInChildren <GrabItem>();

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