private void Start() { _parentOfCanvasCard = RectTransform.parent; //_startColor = Images[0].color; _cardCanvasManager = FindObjectOfType <CardCanvasManager>(); _abilityCardCanvasButton = FindObjectOfType <AbilityCardCanvasButton>(); }
void Start() { SetParameterText(); _cardCanvasManager = FindObjectOfType <CardCanvasManager>(); _abilityCardCanvasButton = FindObjectOfType <AbilityCardCanvasButton>(); _actionsArray = new Action <int> [3]; _actionsArray[0] += ChangeCost; _actionsArray[1] += ChangeHealth; _actionsArray[2] += ChangeAttack; }