public void attackCard(int index, DavinciController.ResultCallback callback) { this.callback = callback; attackIndex = index; attackEffect.SetActive(true); //isUpdate = true; }
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(); }
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); }); }
public void attack(int selectIndex, int attackIndex, DavinciController.ResultCallback callback) { attackInfo.show(attackIndex); spriteBg.color = Color.red; StartCoroutine(attackEffect(selectIndex, attackIndex, callback)); }
public void attack(string email, int selectIndex, int attackIndex, DavinciController.ResultCallback callback) { UserPanel p = getUserPanel(email); p.attack(selectIndex, attackIndex, callback); }