コード例 #1
0
    public void activateAugment()
    {
        if (!wasActivated && activateTime)
        {
            switch (augmentCard.getType())
            {
            case 0: activateAugmentMonster();
                break;

            case 1: activateAugmentField();
                break;

            case 2: activateAugmentLord();
                break;

            default: break;
            }
        }
    }
コード例 #2
0
    public void activateEffect()
    {
        switch (augment.getType())
        {
        case 0: MonsterCard m = monster.GetComponent <ThisMonsterCard>().getMonsterCard();
            augment.activateEffect(m);
            break;

        case 1: FieldMonsterZone f = zone.GetComponent <FieldMonsterZone>();
            augment.activateEffect(f);
            break;

        case 2: Lord l = lord.GetComponent <ThisLord>().getLord();
            augment.activateEffect(l);
            break;

        default: break;
        }

        thisAugment.setWasActivated(true);
    }