public void ToTestMatch(int num) { ChangeScene(2); StartCoroutine(DataManager.Instance.BGMFade(2, FadeWait)); int useDeck = DataManager.Instance.UseDeck; if (num == 5) { battleScript.BattleStartOffline(new int[] { 50, 50 }, new int[] { 10, 200 } , SystemScript.cdTocp(DataManager.Deck.GetDeckData(useDeck)), SystemScript.GetEnemyDeck(num)); } else { battleScript.BattleStartOffline(new int[] { 50, 50 }, new int[] { 10, 10 } , SystemScript.cdTocp(DataManager.Deck.GetDeckData(useDeck)), SystemScript.GetEnemyDeck(num)); } }
public void ToCPUArenaBattle(XLS_ArenaData.Param param, int difficulty) { ChangeScene(2); // param. // battleScript.gameObject.SetActive (true); StartCoroutine(DataManager.Instance.BGMFade(2, FadeWait)); int useDeck = DataManager.Instance.UseDeck; battleScript.BattleStartOffline(new int[] { 40, param.HP[difficulty] }, new int[] { 10, 10 } , SystemScript.cdTocp(DataManager.Deck.GetDeckData(useDeck)), SystemScript.GetEnemyDeck(param.deck)); // if (_num == 0) { // } // if (_num == 1) { //// battleScript.BattleStartOffline (new int[]{ 40, 40 }, new int[]{ 10, 10 } //// ,SystemScript.cdTocp( DataManager.Deck.GetDeckData (useDeck)), SystemScript.GetEnemyDeck (0)); // battleScript.BattleStartOffline (new int[]{ 40, 40 }, new int[]{ 10, 10 } // ,SystemScript.cdTocp( DataManager.Deck.GetDeckData (useDeck)),SystemScript.cdTocp( DataManager.Deck.GetDeckData (useDeck))); // } }