void Start() { dataManager = DataManager.Instance; _possededOnly = true; nextButton.onClick.AddListener(delegate { TaskWithParameters("Up"); }); previousButton.onClick.AddListener(delegate { TaskWithParameters("Down"); }); possededOnlyButton.onClick.AddListener(delegate { TaskWithParameters("PossededOnly"); }); AssignPositions(); cardOfPrefab = CardPrefab.GetComponent <Card>(); InstanciateCards(1, _possededOnly); }
//-------------------------------------------------------------------------------------------------------------- #region Unitycallbacks void Awake() { PlayerHand = GetComponent <IUiPlayerHand>(); CardRenderer = CardPrefab.GetComponent <SpriteRenderer>(); PlayerHand.OnPileChanged += Bend; }
//-------------------------------------------------------------------------------------------------------------- #region Unitycallbacks private void Awake() { CardHandSelector = GetComponent <UiCardHandSelector>(); CardRenderer = CardPrefab.GetComponent <SpriteRenderer>(); CardHandSelector.OnPileChanged += Bend; }