Пример #1
0
    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);
    }
Пример #2
0
        //--------------------------------------------------------------------------------------------------------------

        #region Unitycallbacks

        void Awake()
        {
            PlayerHand                = GetComponent <IUiPlayerHand>();
            CardRenderer              = CardPrefab.GetComponent <SpriteRenderer>();
            PlayerHand.OnPileChanged += Bend;
        }
Пример #3
0
        //--------------------------------------------------------------------------------------------------------------

        #region Unitycallbacks

        private void Awake()
        {
            CardHandSelector = GetComponent <UiCardHandSelector>();
            CardRenderer     = CardPrefab.GetComponent <SpriteRenderer>();
            CardHandSelector.OnPileChanged += Bend;
        }