void FixedUpdate()
    {
        AttackOrPatrolControl();

        if (enemyState == EnemyState.PATROLLING)
        {
            patrolBetweenPoints.Patrolling(5);
        }
        if (enemyState == EnemyState.ATTACKING)
        {
            Attack();
        }
    }
示例#2
0
 void FixedUpdate()
 {
     patrolBetweenPoints.Patrolling(2);
 }