Ejemplo n.º 1
0
    void SetContext(int viewID)
    {
        if (contextCard)
        {
            contextCard.destroy();
        }

        contextCard = PhotonView.Find(viewID).GetComponent <CardContext>();
        contextCard.owner.RemoveCard(contextCard);
        contextCard.show();

        contextCard.TargetType = TargetType.Context;
        SoundManager.Instance.PlayCardSlide();
    }