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); }
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); }
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); }