public BattleData(uint stageNum, bool isPlayerHost, BattleUnit[] units) { this.stageNumber = stageNum; this.isPlayerHost = isPlayerHost; this.playerUnit = units[0]; this.rivalUnit = units[1]; }
void ToBattle() { // 仮の対戦データを使用 BattleUnit[] units = new BattleUnit[2]; for (int i = 0; i < units.Length; ++i) { BattleUnit unit = new BattleUnit( new uint[] { 1, 2, 3, 2, 1 }, new bool[] { false, true, false, true, false}, (i == 0 ? true : false) ); units[i] = unit; } BattleData battleSetUp = new BattleData(1, true, units); SceneManager.Instance.ChangeScene(new BattleScene(battleSetUp)); }
public void SceneMove() { // 今の所仮データを入れる BattleUnit[] units = new BattleUnit[2]; for (int i = 0; i < units.Length; ++i) { BattleUnit unit = new BattleUnit( new uint[] { 1, 3, 5, 7, 3 }, new bool[] { false, true, false, true, false}, (i == 0 ? true : false) ); units[i] = unit; } BattleData battleSetUp = new BattleData(1, true, units); SceneManager.Instance.ChangeScene(new BattleScene(battleSetUp)); }