Example #1
0
 /*
  * public GameObject OpenResidential()
  * {
  *  CloseUI();
  *  ResidentPopup.SetActive(true);
  *  ResidentPopup.GetComponent<RectTransform>().anchoredPosition = origResident;
  *  return ResidentPopup;
  * }
  */
 public GameObject OpenDistrict()
 {
     CloseUI();
     DistrictPopup.SetActive(true);
     DistrictPopup.GetComponent <RectTransform>().anchoredPosition = origDistrict;
     return(DistrictPopup);
 }
Example #2
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();
    }