예제 #1
0
    public void ToggleIntercept()
    {
        if (myCard.keywords.Contains(Constants.Keywords.Interceptor))
        {
            myCard.RPCToggleIntercept(PhotonTargets.All, false);
            interceptContainer.gameObject.SetActive(true);
            interceptContainer.GetComponent <Image>().sprite = interceptSprite;
        }
        else
        {
            myCard.RPCToggleIntercept(PhotonTargets.All, true);
            //unInterceptContainer.gameObject.SetActive(true);
            interceptContainer.GetComponent <Image>().sprite = unInterceptSprite;
        }

        myCard.owner.combatManager.EndCombat();

        gameObject.SetActive(false);
    }