Looking at the UFE.cs code:
// Load the intro screen or the combat, depending on the UFE Config settings
if (UFE.config.debugOptions.startGameImmediately){
if (UFE.config.debugOptions.trainingMode) {
UFE.gameMode = GameMode.TrainingRoom;
} else {
UFE.gameMode = GameMode.VersusMode;
}
UFE.config.player1Character = config.p1CharStorage;
UFE.config.player2Character = config.p2CharStorage;
UFE.SetCPU(1, config.p1CPUControl);
UFE.SetCPU(2, config.p2CPUControl);
//UFE.StartGame(0);
if (UFE.config.debugOptions.skipLoadingScreen) {
UFE._StartGame(UFE.config.gameGUI.gameFadeDuration);
} else {
UFE._StartLoadingBattleScreen(UFE.config.gameGUI.screenFadeDuration);
}
}
You can probably just code:
UFE.gameMode = GameMode.VersusMode; // or GameMode.TrainingMode if you want Training.
UFE.config.player1Character = p1CharAsset; // or whatever variable you have the Character Asset file set
UFE.config.player2Character = p2CharAsset; // or whatever variable you have the Character Asset file set
UFE.config.selectedStage = stagePrefab; // or whatever variable you have the Stage Prefab file set
UFE.SetCPU(1, false); // Set to true for AI on P1
UFE.SetCPU(2, false); // Set to true for AI on P2
UFE.StartGame(UFE.config.gameGUI.gameFadeDuration);
That should get you started. Not that you don't need the other code the methods link to, but that being called will boot up the game into the battle system.