コード例 #1
0
 //-----------------------------------------------------------------------------------------------------
 private IEnumerator RelocatePopupCoroutine(CityMarker _newCityMarker)
 {
     if (m_currentMarker != null)
     {
         m_currentMarker.ChangeState();
     }
     if (PopupState == POPUPSTATE.OPEN)
     {
         PopupState = POPUPSTATE.CLOSED;
         while (Animations.GetBool("PopupClosed") == true)
         {
             yield return(null);
         }
     }
     ;
     _newCityMarker.ChangeState();
     m_currentMarker   = _newCityMarker;
     CanMove           = true;
     m_cityName        = m_currentMarker.CityName;
     m_currentLocation = m_currentMarker.RectTransform;
     PopupState        = POPUPSTATE.OPEN;
 }
コード例 #2
0
 //-----------------------------------------------------------------------------------------------------
 public void RelocatePopup(CityMarker _newMarker)
 {
     CanMove = false;
     StartCoroutine(RelocatePopupCoroutine(_newMarker));
 }