public override void Spawn(Vector3 spawnPoint)
        {
            base.Spawn(spawnPoint);

            Brain.RemoveAllSubgoals();
            TargetingSystem.ClearTarget();
            WeaponSystem.Initialize();
            RestoreHealthToMaximum();
        }
        private void OnEntityDestroyed(Event <EntityDestroyedEventPayload> eventArg)
        {
            var payload = eventArg.EventData;

            if (payload.shooter != this) // event not for us
            {
                return;
            }

            IncrementScore();

            if (TargetingSystem.Target == payload.victim)
            {
                TargetingSystem.ClearTarget();
            }
        }