Exemple #1
0
    public void view()
    {
        uiCtrl.mask(new Transform[] { this.cardCtrl.transform, uiCtrl.viewPanel.transform });
        Utils.currentCard = this;

        cardTween = cardCtrl.transform.DOMove(new Vector3(Screen.width / 2, Screen.height / 2, 0), Utils.cardMoveSpeed).SetAutoKill(false);

        uiCtrl.showView();
        uiCtrl.bCloseCard.gameObject.SetActive(true);
        uiCtrl.bTakeCard.gameObject.SetActive(takeable);
        uiCtrl.bActionCard.gameObject.SetActive(actionable);
    }