Example #1
0
    IEnumerator addinfo(Stone tempcard)
    {
        cards.Add(tempcard);

        tempcard.turnit(false);
        tempcard.transform.parent = transform;
        iTween.MoveTo(cards[cards.Count - 1].gameObject, iTween.Hash("x", 0, "y", -5.0f, "z", 0, "islocal", true,  "easeType",  "easeOutQuad", "time", 0.3f));
        yield return new  WaitForSeconds(0.3f);
        tempcard.turnit(true);
    }
Example #2
0
 public void addinfo(Stone tempcard)
 {
     cards.Add(tempcard);
     tempcard.transform.parent = transform;
     tempcard.layering(false);
     if (cards.Count == 1)
         tempcard.turnit(false);
     else
         tempcard.hideit();
 }