void StartAttackState() { if (localSettings.botsCanStart == true) { bOT_Attack.currState = BOT_Attack.AttackState.GetPlayers; currentStateAttack = BOT_FStateMachineAttack.GetEnemyTeam; } }
void Start() { anim = GetComponent <Animator> (); botWander = GetComponent <BOT_Wander>(); bOT_Attack = GetComponent <BOT_Attack>(); navMeshAgent = GetComponent <NavMeshAgent>(); currentStateWander = BOT_FStateMachineWander.StartWander; currentStateAttack = BOT_FStateMachineAttack.LookForEnemy; currentMoveState = BOT_FStateMachineMoveTowardsEnemy.Stopped; localSettings = GameObject.Find("LocalSettings").GetComponent <LocalSettings>(); }