コード例 #1
0
ファイル: BattleManager.cs プロジェクト: rider02/enburoku
    /// <summary>
    /// 戦闘後の後処理 ここまで
    /// </summary>

    /// <summary>
    /// 戦闘開始前のUI制御系メソッド
    /// </summary>
    //210216仲間を回復する前のUI表示
    public void MapOpenHealView(Unit unit, PlayerModel selectedUnit)
    {
        //回復に使用する数値の計算を実施してUIに表示 必殺率、命中率、相手の攻撃力等が存在しない版
        HealParameterDTO healParameterDTO = battleCalculator.CalculateHealParameter(unit, unit.equipHealRod, selectedUnit.unit);

        battleView.GetComponent <BattleView>().HealUpdateText(healParameterDTO);

        //戦闘UI表示
        battleView.SetActive(true);

        //本クラスに戦闘するプレイヤーと敵を設定
        this.unit       = unit;
        healTargetModel = selectedUnit;

        battleConfirmWindow.GetComponent <BattleConfirmWindow>().UpdateConfirmtext("回復して良いですか?", false);
        battleConfirmWindow.SetActive(true);
        EventSystem.current.SetSelectedGameObject(null);
        EventSystem.current.SetSelectedGameObject(battleConfirmWindow.transform.Find("ButtonLayout/StartButton").gameObject);
    }