Пример #1
0
        public override void FireInternal()
        {
            var mine = new ProximityMine();

            mine.MoveTo(Holder.Left, Holder.Top);
            SpaceTime.CurrentSpaceTime.Add(mine);
        }
Пример #2
0
        public override void FireInternal()
        {
            var mine = new ProximityMine(this)
            {
                ExcludedTypes = ExcludedTypes
            };

            PlaceMineSafe(mine, Holder);
            SpaceTime.CurrentSpaceTime.Add(mine);
        }
Пример #3
0
        public override void FireInternal(bool alt)
        {
            var mine = new ProximityMine(this)
            {
                TargetTag = TargetTag
            };

            PlaceMineSafe(mine, Holder, !alt);
            SpaceTime.CurrentSpaceTime.Add(mine);
            OnWeaponElementEmitted.Fire(mine);
        }
Пример #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);
        }