コード例 #1
0
 public void attackCard(int index, DavinciController.ResultCallback callback)
 {
     this.callback = callback;
     attackIndex   = index;
     attackEffect.SetActive(true);
     //isUpdate = true;
 }
コード例 #2
0
 public void openCard(DavinciController.ResultCallback callback)
 {
     Debug.Log("openCard : i : " + card.index + " / open : " + (card.isOpen == true?"t":"f"));
     this.callback = callback;
     openEffect.SetActive(true);
     reload();
 }
コード例 #3
0
    IEnumerator attackEffect(int selectIndex, int attackIndex, DavinciController.ResultCallback callback)
    {
        yield return(new WaitForSeconds(2));

        UserPreviewCard c = preViewList[selectIndex].GetComponent <UserPreviewCard>();

        c.attackCard(attackIndex, (bool isSuccess) => {
            spriteBg.color = Color.white;
            attackInfo.hide();
            callback(isSuccess);
        });
    }
コード例 #4
0
 public void attack(int selectIndex, int attackIndex, DavinciController.ResultCallback callback)
 {
     attackInfo.show(attackIndex);
     spriteBg.color = Color.red;
     StartCoroutine(attackEffect(selectIndex, attackIndex, callback));
 }
コード例 #5
0
    public void attack(string email, int selectIndex, int attackIndex, DavinciController.ResultCallback callback)
    {
        UserPanel p = getUserPanel(email);

        p.attack(selectIndex, attackIndex, callback);
    }