示例#1
0
    void Init()
    {
        status.changeAddDefenceEvent += AddShield;
        status.changeSubDefenceEvent += SubShield;

        status.changeSubHPEvent += ShowDamage;

        status.changeAddHPEvent += uiStatus.SetHP;
        status.changeSubHPEvent += uiStatus.SetHP;

        status.changeAddAttackPowerEvent += uiStatus.SetPower;
        status.changeSubAttackPowerEvent += uiStatus.SetPower;

        ChangeWeapon(defaultWeapon);

        uiStatus.SetHP(status.HP, status.maxHP, 0);
        uiStatus.SetPower(status.AttackPower, 0);
    }