protected void InitializeAi() { wasFacingRight = rightFacing; // Sets the starting direction of player enemyState = EnemyState.Idle; pathfinding.Setup(this); player = Player.instance.transform; }