コード例 #1
0
ファイル: UIManager.cs プロジェクト: PenpenLi/Hifior
    public void ShowAttackInfo(CharacterLogic currentCharacterLogic, CharacterLogic logic)
    {
        WeaponItem equipWeapon = currentCharacterLogic.Info.Items.GetEquipWeapon();
        var        def         = ResourceManager.GetWeaponDef(equipWeapon.ID);
        int        afterHP     = currentCharacterLogic.GetCurrentHP() - BattleLogic.GetAttackDamage(logic, currentCharacterLogic);

        Left_BattleAttackInfo.Show(currentCharacterLogic.GetPortrait(), def.Icon, def.CommonProperty.Name, currentCharacterLogic.GetMaxHP(), currentCharacterLogic.GetCurrentHP(), afterHP,
                                   currentCharacterLogic.GetHit(), BattleLogic.GetAttackDamage(currentCharacterLogic, logic), currentCharacterLogic.GetCritical(), BattleLogic.GetAttackCount(currentCharacterLogic, logic));

        equipWeapon = logic.Info.Items.GetEquipWeapon();
        def         = ResourceManager.GetWeaponDef(equipWeapon.ID);
        afterHP     = logic.GetCurrentHP() - BattleLogic.GetAttackDamage(currentCharacterLogic, logic);
        Right_BattleAttackInfo.Show(logic.GetPortrait(), def.Icon, def.CommonProperty.Name, logic.GetMaxHP(), logic.GetCurrentHP(), afterHP,
                                    logic.GetHit(), BattleLogic.GetAttackDamage(logic, currentCharacterLogic), logic.GetCritical(), BattleLogic.GetAttackCount(logic, currentCharacterLogic));
    }
コード例 #2
0
ファイル: UIManager.cs プロジェクト: PenpenLi/Hifior
 public void HideAttackInfo()
 {
     Left_BattleAttackInfo.Hide(false);
     Right_BattleAttackInfo.Hide(false);
 }