public static void Test1(int enemyCount, int walkerCount, int followerCount) { using var gil = Py.GIL(); using dynamic scope = Py.Import("pyresources.main"); scope.initialize_systems(); scope.initialize_game(enemyCount, walkerCount, followerCount); scope.start_game(); while (true) { scope.run(); } }
public static void Test0(List <GameObject> gameObjects) { using var gil = Py.GIL(); using dynamic scope = Py.Import("pyresources.main"); scope.load(gameObjects); }