コード例 #1
0
 public GameObject OpenVacant()
 {
     CloseUI();
     VacantPopup.SetActive(true);
     VacantPopup.GetComponent <RectTransform>().anchoredPosition = origVacant;
     return(VacantPopup);
 }
コード例 #2
0
 public void CloseUI()
 {
     RoadPopup.SetActive(false);
     VacantPopup.SetActive(false);
     OwnedRestaurantPopup.SetActive(false);
     EnemyRestaurantPopup.SetActive(false);
     DistrictPopup.SetActive(false);
 }
コード例 #3
0
    private void Awake()
    {
        origOwned = OwnedRestaurantPopup.transform.localPosition;
        origEnemy = EnemyRestaurantPopup.transform.localPosition;

        origRoad     = RoadPopup.GetComponent <RectTransform>().anchoredPosition;
        origVacant   = VacantPopup.GetComponent <RectTransform>().anchoredPosition;
        origDistrict = DistrictPopup.GetComponent <RectTransform>().anchoredPosition;

        CloseUI();
    }