Example #1
0
 public void CardBack(Card card, DunTpye dun)
 {
     cardsResult[(int)dun].Remove(card);
     if (cardsResult[(int)dun].Count == 0)
     {
         CardAllBack(dun);
     }
 }
Example #2
0
 private void AIShow(DunTpye dunTpye, DeckTypeEnum type)
 {
     if (this.dunTpye == dunTpye)
     {
         ShowType.text = TypeName[type];
         beuse         = true;
     }
 }
Example #3
0
    public void CardUP(List <Vector3> poslist, DunTpye dunType)
    {
        int i = 0;

        foreach (Card item in AllCardList)
        {
            if (item.state == Postype.Beseleted)
            {
                item.BeUsed(poslist[i++], dunType);
                cardsResult[(int)dunType].Add(item);
            }
        }
    }
Example #4
0
    public void BeUsed(Vector3 pos, DunTpye dun)
    {
        DunTpye = dun;
        Vector3 scr = RectTransformUtility.WorldToScreenPoint(Camera.main, pos);

        scr.z = 0;

        scr.z = Mathf.Abs(Camera.main.transform.position.z - transform.position.z);

        TarPos = Camera.main.ScreenToWorldPoint(scr);
        ToUp   = true;
        state  = Postype.BeUsed;
        //transform.position = tar;
        //transform.DOBlendableLocalMoveBy(tar, 1f);
    }