Esempio n. 1
0
    void CheckPowerUp()
    {
        switch (powerUpType)
        {
        case 0:
            pc.ActivateAutoAttack();
            op.AnnounceRapidshot();
            break;

        case 1:
            pc.Heal();
            op.AnnounceHeal();
            break;

        case 2:
            pc.CrossShot();
            op.AnnounceCrossfire();
            break;

        case 3:
            pc.ActivateShield();
            op.AnnounceShield();
            break;
        }
    }