Esempio n. 1
0
            public void OnDestroyed()
            {
                IsDestroyed = true;
                if (Id == 1)
                {
                    GlobalGame.SpawnFireNodes(Position, 50, new Vector2(0, 0), 3, 10, FireNodeType.Flamethrower);
                }
                if (Id == 0 || Id == 1)
                {
                    ReadyForRemove = true;
                }

                if (Id == 3)
                {
                    FlashbangExplosion();
                }

                if (Id == 2)
                {
                    ThrownWeaponObject = GlobalGame.CreateObject("DrinkingGlass00", Position);
                }
            }