Esempio n. 1
0
    protected void Increment(GameObject Obj)
    {
        if (Obj == null)
        {
            error = true;
            return;
        }

        CardBehaviour card = Obj.GetComponent <CardBehaviour> ();
        int           num  = card.CardNumberForInt() + 1;

        card.SetVariable(num);

        ApplyChangeVariable(num, card.cardString);
    }
Esempio n. 2
0
    protected void Initialize(GameObject Obj)
    {
        if (Obj == null)
        {
            error = true;
            return;
        }

        CardBehaviour card = Obj.GetComponent <CardBehaviour> ();
        int           num  = 0;

        card.SetVariable(num);

        ApplyChangeVariable(num, card.cardString);
    }
Esempio n. 3
0
    protected void Substitute(GameObject Obj)
    {
        if (Obj == null)
        {
            error = true;
            return;
        }

        CardBehaviour card = Obj.GetComponent <CardBehaviour> ();

        int num = ElementsList [ElementsList.Count - 1].GetComponent <CardBehaviour> ().CardNumberForInt();

        card.SetVariable(num);

        ApplyChangeVariable(num, card.cardString);
    }