Exemplo n.º 1
0
        public void UpdateRegion()
        {
            if (m_Region != null)
            {
                m_Region.Unregister();
            }

            if (!Deleted && this.Map != Map.Internal)
            {
                m_Region = new ChampionSpawnRegion(this);
                m_Region.Register();
            }

            /*
             * if( m_Region == null )
             * {
             *      m_Region = new ChampionSpawnRegion( this );
             * }
             * else
             * {
             *      m_Region.Unregister();
             *      //Why doesn't Region allow me to set it's map/Area meself? ><
             *      m_Region = new ChampionSpawnRegion( this );
             * }
             */
        }
Exemplo n.º 2
0
        public void UpdateRegion()
        {
            if (m_Region != null)
            {
                m_Region.Unregister();
            }

            if (!Deleted && this.Map != Map.Internal)
            {
                m_Region = new ChampionSpawnRegion(this);
                m_Region.Register();
            }
        }