Пример #1
0
        internal void DestroyBomb(Bomb bomb)
        {
            GameplayState gameplayState = SceneManager.Instance.GameplayState;
            List <Bomb>   bombs         = gameplayState.Bombs;

            //Shift the bomb to be away from the front of the list (bomb at the front of the list only get deactivated, rather than destroyed)
            if (bombs.Remove(bomb))
            {
                bombs.Add(bomb);
            }

            Logging.Log("Destroying bomb...");

            //Call the remove the bomb actual
            gameplayState.RemoveBomb(bomb);
        }