List<Combatant> combatants = new List<Combatant> { selectCardController.connectedGameObject.GetComponent<CombatantComponent>().Combatant };
newBattle = BattleComponent.CreateBattle(combatants);
newBattle.settings.ownStartSchematic = true;
AssetSource < MakinomSchematicAsset > tempAsset = new AssetSource<MakinomSchematicAsset>();
tempAsset.SetAsset(battleStartAsset);
newBattle.settings.startSchematicAsset = tempAsset;
//Maki.Game.Variables.Set("Map_LoadSceneName", selectCardController.loadScene);
newBattle.settings.variableChanges.variable.SetValue(selectCardController.loadScene, 0); //Doesn't work
newBattle.settings.ownEndSchematic = true;
AssetSource<MakinomSchematicAsset> tempAsset2 = new AssetSource<MakinomSchematicAsset>();
tempAsset2.SetAsset(battleEndVictoryAsset);
newBattle.settings.victorySchematicAsset = tempAsset2;
It looks like you're new here. If you want to get involved, click one of these buttons!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!