public TileData this[TileDataKey _key] { get { if (m_TileDatas.Count == 0) Rebuild(); var _hashkey = _key.GetHashCode(); if (!m_TileDatas.ContainsKey(_hashkey)) { Debug.LogWarning("TileDatabase does not have " + _key + ". Return null."); return null; } return (TileData)m_TileDatas[_hashkey]; } }
public TileData this[TileDataKey _key] { get { if (m_TileDatas.Count == 0) { Rebuild(); } var _hashkey = _key.GetHashCode(); if (!m_TileDatas.ContainsKey(_hashkey)) { Debug.LogWarning("TileDatabase does not have " + _key + ". Return null."); return(null); } return((TileData)m_TileDatas[_hashkey]); } }