void Méthode2() { Pathfinding path3 = new Pathfinding(Game, Grille); path3.Initialize(); Requête = new RequêtePathManager(path3); Requête.Initialize(); path3 = new Pathfinding(Grille, Requête); Requête = new RequêtePathManager(path3); Requête.Initialize(); Action<Vector3[], bool> lol = new Action<Vector3[], bool>(OnPathFound); //Requête.PathRequête(Position, PositionAvatarPlusProche, lol);//OnPathFound(Path, false)); RequêtePathManager.PathRequête(Position, PositionAvatarPlusProche, OnPathFound); }
void Méthode1() { path2 = new Pathfinding(Game, Grille); path2.Initialize(); }