Exemplo n.º 1
0
 void MoveToDiscard(CardProspector cd)
 {
     cd.state = CardState.discard;
     discardPile.Add(cd);
     cd.transform.parent        = layoutAnchor;
     cd.transform.localPosition = new Vector3(
         layout.multiplier.x * layout.discardPile.x,
         layout.multiplier.y * layout.discardPile.y,
         -layout.discardPile.layerID + .5f);
     cd.faceUp = true;
     cd.SetSortingLaynerName(layout.discardPile.layerName);
     cd.SetSortOrder(-100 + discardPile.Count);
 }
Exemplo n.º 2
0
 void MoveToTarget(CardProspector cd)
 {
     if (target != null)
     {
         MoveToDiscard(target);
     }
     target                     = cd;
     cd.state                   = CardState.target;
     cd.transform.parent        = layoutAnchor;
     cd.transform.localPosition = new Vector3(
         layout.multiplier.x * layout.discardPile.x,
         layout.multiplier.y * layout.discardPile.y,
         -layout.discardPile.layerID);
     cd.faceUp = true;
     cd.SetSortingLaynerName(layout.discardPile.layerName);
     cd.SetSortOrder(0);
 }