示例#1
0
    public void activateAugmentLord()
    {
        GameObject lord = myPlayer.getLordGameObject();

        ActivateTag at = activateTag.GetComponent <ActivateTag>();

        at.setLord(lord);
        at.setAugmentCard(augmentCard);
        at.setThisAugmentCard(this);

        GameObject go = Instantiate(activateTag, lord.transform.position, lord.transform.rotation) as GameObject;

        go.transform.SetParent(lord.transform);
    }
示例#2
0
    public void activateAugmentField()
    {
        List <GameObject> zones = myPlayer.getFieldGameObject().GetComponent <FieldMonsters>().getZones();

        for (int i = 0; i < 5; i++)
        {
            ActivateTag at = activateTag.GetComponent <ActivateTag>();

            at.setZone(zones[i]);
            at.setAugmentCard(augmentCard);
            at.setThisAugmentCard(this);

            GameObject go = Instantiate(activateTag, zones[i].transform.position, zones[i].transform.rotation) as GameObject;
            go.transform.SetParent(zones[i].transform);
        }
    }