Beispiel #1
0
        private void CheckHit()
        {
            foreach (var Entity in NpcManager.GetNpcList(Team.Opposite()))
            {
                if (!Entity.Action.CanLocked())
                {
                    continue;
                }

                if (Shape_.Contains(Position, Entity.Position, Rotation))
                {
                    Entity.Action.OnBulletHit(this);
                    //LabelManager.AddNumberLabel(Entity.Position, NumberLabelType.Float, Damage);
                    Entity.Action.Back((Entity.Position - Position).normalized * 30, 400);
                }
            }
        }