public IEnumerator OnUpdate(GamingMapArea mapArea) { m_GamingMapArea = mapArea; GamingMapType mapType = m_GamingMapArea.GetGamingMapType(); if (mapType != m_lastGamingMapType) { ResetModelPath(); } m_lastGamingMapType = mapType; if (m_CreateTeleportEnumerator != null) { while (m_CreateTeleportEnumerator.MoveNext()) { yield return(null); } m_CreateTeleportEnumerator = null; m_EditorLocation = null; } yield return(null); m_LocationCache = gameObject.GetComponentsInChildren <Location>(); CalcuateMaxLocationId(); if (m_LocationCache != null && m_LocationCache.Length > 0) { for (int iLocation = 0; m_LocationCache != null && iLocation < m_LocationCache.Length; iLocation++) { IEnumerator locationEnumerator = m_LocationCache[iLocation].OnUpdate(this, m_ShowModel); if (locationEnumerator != null) { while (m_LocationCache != null && m_LocationCache[iLocation] != null && locationEnumerator.MoveNext()) { yield return(null); } } } } yield return(null); }
public GamingMapType GetGamingMapType() { return(m_GamingMapArea.GetGamingMapType()); }