Пример #1
0
        private void Bomb()
        {
            IsBomb_  = true;
            BombSfx_ = SfxManager.PlaySkySfx(Position, "prefabs/sfx/bombsfx.prefab");

            foreach (var Entity in NpcManager.GetNpcList(Team.Opposite()))
            {
                if (!Entity.Action.CanLocked())
                {
                    continue;
                }

                if (Shape_.Contains(Position, Entity.Position, Quaternion.identity))
                {
                    Entity.Action.OnBulletHit(this);
                    //LabelManager.AddNumberLabel(Entity.Position, NumberLabelType.Bomb, Damage);
                    Entity.Action.Back((Entity.Position - Position).normalized * 80, 400);
                }
            }
        }