public GameObject OpenOwnedRestaurant() { CloseUI(); OwnedRestaurantPopup.SetActive(true); OwnedRestaurantPopup.transform.localPosition = origOwned; // might be the problem for the null reference :Antonio return(OwnedRestaurantPopup); }
public void CloseUI() { RoadPopup.SetActive(false); VacantPopup.SetActive(false); OwnedRestaurantPopup.SetActive(false); EnemyRestaurantPopup.SetActive(false); DistrictPopup.SetActive(false); }