private void SeekBot()
 {
     TargetEnemyBot = _botVisionComponent.DoLookoutFor(false, false, CTFGameManager.TAG_OFFENCE)[0].GetComponent <CTFBot>();
     TargetEnemyBot.OnDie.AddListener(OnTargetDie_Listener);
     // _botLocomotiveComponent.MoveToTarget(BotLocomotive.StopMovementConditions.WITHIN_PERSONAL_SPACE);
     _botGroundComponent.MoveToTarget(BotLocomotive.DistanceType.PERSONAL_SPACE);
 }
 public void OnTargetDie_Listener(CTFBot target)
 {
     target.OnDie.RemoveListener(OnTargetDie_Listener);
     if (target == TargetEnemyBot)
     {
         TargetEnemyBot = null;
         _botGroundComponent.UnFocus();
     }
 }
 public bool GiveFlagToBot(CTFBot bot)
 {
     if (IsFlagTaken())
     {
         return(false);
     }
     Flag.parent        = bot.FlagHolder.transform;
     Flag.localPosition = Vector3.zero;
     return(true);
 }
 private void  DoPatrol_OnStopped(bool success)
 {
     TargetEnemyBot = CTFPatrol_FlagNotTakenBehaviours.DoPatrol.TargetTransforms[0].GetComponent <CTFBot>();
 }