Пример #1
0
    public void Exit()
    {
        gameObject.SetActive(false);
        ButtonsAnimator.SetTrigger("Close");
        minimap.SetActive(true);
        Movement.isPaused = false;

        PlayerCam.SetActive(true);
        ShopCam.SetActive(false);

        ShopCam.GetComponent <CinemachineVirtualCamera>().LookAt = null;
    }
Пример #2
0
    public void Activate()
    {
        gameObject.SetActive(true);
        minimap.SetActive(false);
        ButtonsAnimator.SetTrigger("Open");

        ShopCam.SetActive(true);
        PlayerCam = GameObject.Find("Player").transform.GetChild(6).gameObject;
        PlayerCam.SetActive(false);

        ShopCam.GetComponent <CinemachineVirtualCamera>().LookAt = Merchant.transform;

        Movement.isPaused = true;
    }