protected void InitComponents() { _botGroundComponent = GetComponent <BotGround>(); _behaviourManagerComponent = GetComponent <BehaviourManager>(); _botVisionComponent = GetComponent <BotPartVision>(); FlagHolder = gameObject.GetChild(NAME_FLAGHOLDER); }
public BotLogicNavMesh(BotGround botGround, float walkSpeed = 0.75f, float walkRotationSpeed = 120f, float runSpeed = 5f, float runRotationSpeed = 120f) : base(botGround) { Initialize(botGround, botGround.NavMeshAgentComponent, botGround.JumpProximityChecker, walkSpeed, walkRotationSpeed, runSpeed, runRotationSpeed); botGround.BotLogicNavMeshRef = this; }