Esempio n. 1
0
		public void destroy()
		{
			if(!m_Destructable)
			{
				return;
			}
			
			if(m_UpgradeType != BombermanUpgrade.BombermanUpgradeType.None)
			{
				BombermanUpgrade upgrade = new BombermanUpgrade( m_UpgradeType, m_Game );
				upgrade.MoveToWorld( Location, Map );
                if(m_Game != null)
                    m_Game.AddItemToGameArea(upgrade);
			}
			
			Delete();
		}
Esempio n. 2
0
        public void destroy()
        {
            if (!m_Destructable)
            {
                return;
            }

            if (m_UpgradeType != BombermanUpgrade.BombermanUpgradeType.None)
            {
                BombermanUpgrade upgrade = new BombermanUpgrade(m_UpgradeType, m_Game);
                upgrade.MoveToWorld(Location, Map);
                if (m_Game != null)
                {
                    m_Game.AddItemToGameArea(upgrade);
                }
            }

            Delete();
        }