protected override void OnShow(object userData) { base.OnShow(userData); m_TerrainBrickData = userData as TerrainBrickData; if (m_TerrainBrickData == null) { throw new GameFrameworkException(); } }
protected override void OnHide(object userData) { m_TerrainBrickData = null; base.OnHide(userData); }