Exemple #1
0
    void Attack()
    {
        target = Random.Range(1, 3);
        switch (target)
        {
        case 1:     //プレイヤーに対して
            if (player.isProtect || player.isCall)
            {
                mt.GapText();
                player.hp = player.hp - atk * 2;
            }
            else
            {
                mt.ForPlayerText();
                player.hp = player.hp - atk;
            }
            break;

        case 2:     //少女に対して
            if (player.isProtect == true)
            {
                mt.ProtectiveText();
                player.hp = player.hp - atk * 2;
            }
            else
            {
                mt.ForGirlText();
                girl.hp = girl.hp - atk;
            }
            break;
        }
    }