public override void FireInternal()
        {
            var mine = new ProximityMine();

            mine.MoveTo(Holder.Left, Holder.Top);
            SpaceTime.CurrentSpaceTime.Add(mine);
        }
Esempio n. 2
0
        public override void FireInternal()
        {
            var mine = new ProximityMine(this)
            {
                ExcludedTypes = ExcludedTypes
            };

            PlaceMineSafe(mine, Holder);
            SpaceTime.CurrentSpaceTime.Add(mine);
        }
        public override void FireInternal(bool alt)
        {
            var mine = new ProximityMine(this)
            {
                TargetTag = TargetTag
            };

            PlaceMineSafe(mine, Holder, !alt);
            SpaceTime.CurrentSpaceTime.Add(mine);
            OnWeaponElementEmitted.Fire(mine);
        }
Esempio n. 4
0
        public override void FireInternal(bool alt)
        {
            var mine = new ProximityMine(this)
            {
                TargetTag = TargetTag, Range = Range, AngleIncrement = AngleIncrement
            };

            mine.SetProperty(nameof(Holder), this.Holder);
            ProximityMineDropper.PlaceMineSafe(mine, Holder, !alt, Speed);
            SpaceTime.CurrentSpaceTime.Add(mine);
            OnWeaponElementEmitted.Fire(mine);
        }