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; }
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; }