예제 #1
0
		public BattleData(uint stageNum, bool isPlayerHost, BattleUnit[] units)
		{
			this.stageNumber = stageNum;
			this.isPlayerHost = isPlayerHost;
			this.playerUnit = units[0];
			this.rivalUnit = units[1];
		}
예제 #2
0
파일: Starter.cs 프로젝트: K-Yoshiki/menko
		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));
		}
예제 #3
0
		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));
		}