void FixedUpdate() { AttackOrPatrolControl(); if (enemyState == EnemyState.PATROLLING) { patrolBetweenPoints.Patrolling(5); } if (enemyState == EnemyState.ATTACKING) { Attack(); } }
void FixedUpdate() { patrolBetweenPoints.Patrolling(2); }