public IEnumerator Test_oneTurnProcedure() { textmanager.Start(); tacticsmanager.choiceTactics = new DefenceTactics(); PlayerDTO player0 = testtool_chara.prepareFighterDTO("0", 10, 5, 0, 0, 50, 0); PlayerDTO player1 = testtool_chara.prepareFighterDTO("1", 0, 5, 0, 0, 0, 0); PlayerDTO player2 = testtool_chara.prepareFighterDTO("2", 0, 5, 0, 0, 0, 0); PlayerDTO player3 = testtool_chara.prepareFighterDTO("3", 10, 5, 0, 0, 1, 0); PlayerDTO player4 = testtool_chara.prepareFighterDTO("4", 0, 5, 0, 0, 0, 0); PlayerDTO player5 = testtool_chara.prepareFighterDTO("5", 0, 5, 0, 0, 0, 0); BattleStartController.enemyPlayerDTOList = new List <PlayerDTO>(); BattleStartController.myTeamPlayerDTOList = new List <PlayerDTO>(); BattleStartController.myTeamPlayerDTOList.Add(player0); BattleStartController.myTeamPlayerDTOList.Add(player1); BattleStartController.myTeamPlayerDTOList.Add(player2); BattleStartController.enemyPlayerDTOList.Add(player3); BattleStartController.enemyPlayerDTOList.Add(player4); BattleStartController.enemyPlayerDTOList.Add(player5); battlemanager.Start(); battlemanager.oneTurnProcedure(); Assert.That(battletext.text == "バトルスタート!\r\n1ターン目\r\n0の攻撃 ➡ 3に5のダメージ\r\n3の攻撃 ➡ 0に5のダメージ\r\n---------------------------------------"); battletext.text = ""; battlemanager.oneTurnProcedure(); Debug.Log(battletext.text); Assert.That(battletext.text == "\r\n2ターン目\r\n0の攻撃 ➡ 3に5のダメージ\r\n3は倒れた"); yield return(null); }
public void EndDialogue() { //Debug.Log("End of Conversation"); //animator.SetBool("IsOpen", false); //rb.constraints = RigidbodyConstraints2D.FreezeRotation; inCutscene = false; battleManager.Start(); //if (scriptTriggers.Length > 0) //{ // foreach (MonoBehaviour script in scriptTriggers) // { // if (script != null) // { // script.enabled = true; // } // } //} }