public MapClass CreateMapClass() { if (m_SelectedCls != null) { return(m_SelectedCls); } MapClass cls = MapClass.Instantiate <MapClass>(m_ClsPrefab, m_Map.mapObjectPool.transform, false); cls.map = m_Map; cls.Load(0); cls.UpdatePosition(m_CreatePosition); m_SelectedCls = cls; return(cls); }