public void Show(normalDele dele) { hideBoxDele = dele; gameObject.SetActive(true); userInputField.text = ""; // passwordInputField.text = "1"; }
/// <summary> /// 卡图由小变大 /// </summary> /// <param name="card"></param> /// <param name="dele"></param> public void ShowAnim(Card card, normalDele dele) { image.rectTransform.localScale = Vector3.one; image.overrideSprite = StaticMethod.GetCardSprite(card.cardID, false); this.gameObject.SetActive(true); Tweener tweener = image.rectTransform.DOScale(Vector3.one * 3, 0.2f); tweener.SetEase(Ease.Linear); tweener.onComplete = delegate() { Tweener tweener1 = image.rectTransform.DOScale(Vector3.one * 3, 0.2f); tweener1.SetEase(Ease.Linear); tweener1.onComplete = delegate() { image.transform.localScale = Vector3.one; this.gameObject.SetActive(false); if (dele != null) { dele(); } }; }; }
protected void FlashObj() { if (!isStartFlash) { return; } if (flashTimer.Update()) { mDele(); isStartFlash = false; mDele = null; } else { if (flashIntervalTimer.Update()) { for (int i = 0; i < flashImageList.Count; i++) { GameObject obj = flashImageList[i].gameObject; obj.SetActive(!obj.activeSelf); } flashIntervalTimer.Reset(); } } }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Card c = group.GetCard(0); if (c.curArea != ComVal.Area_Monster) { duel.FinishHandle(); return; } Group g = duel.GetIncludeNameCardFromArea(ComStr.KeyWord_MaskHERO, false, card.ownerPlayer, ComVal.CardType_Monster_Fusion, ComVal.Area_Extra); g = g.SiftingGroupInAttr(c.GetCurAttribute()); g = card.controller.GetCanSpSummonGroup(g); GroupCardSelectBack d = delegate(Group g1) { Card c1 = g1.GetCard(0); normalDele dele = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Extra, c1, card.ownerPlayer, card, ComVal.reason_Effect, effect, 0, dele); }; normalDele d1 = delegate { duel.SelectCardFromGroup(g, d, 1, card.controller); }; duel.AddDelegate(d1); duel.SendToGraveyard(ComVal.Area_Monster, group, card, ComVal.reason_Effect, effect); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { GroupCardSelectBack d = delegate(Group val) { card.EffectDataGroup = val; normalDele d1 = delegate { Group result = new Group(); normalDele d2 = delegate { List <Card> list = result.ToList(); int reduceLP = 0; foreach (var item in list) { reduceLP += item.GetCurAfk(); } duel.ReduceLP(reduceLP, card.controller, ComVal.reason_Effect, card, effect); duel.FinishHandle(); }; duel.AddDelegate(d2, true); Group target = card.EffectDataGroup.GetFitlerGroup(Fiter1); result = duel.SendToGraveyard(ComVal.Area_Monster, target, card, ComVal.reason_EffectDestroy, effect); }; duel.AddDelayAction(d1, ComVal.resetEvent_LeaveEndPhase, 0); duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Graveyard, group, card.controller, card, ComVal.reason_Effect, effect, ComVal.CardPutType_UpRightFront, d); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Group g = duel.GetIncludeNameCardFromArea("", true, card.controller, 0, ComVal.Area_Field); normalDele d = delegate { duel.AddFinishHandle(); duel.DiscardFromDeck(3, card, effect, card.controller); }; GetMes d1 = delegate(bool val) { if (val) { GroupCardSelectBack d2 = delegate(Group target) { duel.AddDelegate(d, true); duel.SendToGraveyard(ComVal.Area_Field, target, card, ComVal.reason_EffectDestroy, effect); }; duel.SelectCardFromGroup(g, d2, 1, card.controller); } else { d(); } }; if (g.GroupNum > 0) { duel.ShowDialogBox(card, d1, card.controller.isMy); } else { d(); } }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Card target = card.EffectDataCard; mCard = target; Group g = duel.GetIncludeNameCardFromArea(ComStr.KeyWord_SixSamurai, false, card.controller, ComVal.cardType_Monster, ComVal.Area_MainDeck, Fiter); if (!target.curArea.IsBind(ComVal.Area_Monster) || g.GroupNum == 0) { duel.FinishHandle(); return; } GroupCardSelectBack callBack = delegate(Group val) { normalDele d = delegate { normalDele DestoryCard = delegate { Card c = val.GetFirstCard(); duel.SendToGraveyard(ComVal.Area_Monster, c.ToGroup(), card, ComVal.reason_Effect, effect); }; duel.AddDelayAction(DestoryCard, ComVal.resetEvent_LeaveEndPhase, 0); duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_MainDeck, val.GetFirstCard(), card.controller, card, ComVal.reason_Effect, effect, 0, d); }; duel.SelectCardFromGroup(g, callBack, 1, card.controller); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Card c = group.GetFirstCard(); if (!card.curArea.IsBind(ComVal.Area_Monster) || !c.curArea.IsBind(ComVal.Area_Graveyard)) { duel.FinishHandle(); return; } normalDele d1 = delegate { StateEffect e1 = new StateEffect(); e1.SetCardEffectType(ComVal.cardEffectType_equip | ComVal.cardEffectType_Single); e1.SetCategory(ComVal.category_equipCard); e1.SetEquipCard(card, c); e1.SetRangeArea(ComVal.Area_Trap); duel.ResignEffect(e1, c, card.controller); duel.FinishHandle(); }; duel.AddDelegate(d1, true); duel.EquipCardFromArea(ComVal.Area_Graveyard, c, card.controller, card, effect); }
public void Play(string id, normalDele dele, int cardCount) { rectTransform.localPosition = localPosition; rectTransform.localEulerAngles = localEulerAngles; rectTransform.localScale = Vector3.one; gameObject.SetActive(true); image.overrideSprite = cover; cardSprite = StaticMethod.GetCardSprite(id, true); isMove = true; Tweener t = image.rectTransform.DOLocalRotate(targetEulerAngles, 0.2f); float val = cardCount > 7 ? x * 8 : x * (cardCount + 1); if (!isMy) { val = -val; } Tweener t1 = image.rectTransform.DOLocalMove(new Vector3(val, targetPosition.y, targetPosition.z), 0.2f); Tweener t2 = image.rectTransform.DOScale(new Vector3(1.5f, 1.5f, 1), 0.3f); t1.onComplete = delegate { isMove = false; gameObject.SetActive(false); if (dele != null) { dele(); } }; }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Group g1 = duel.GetIncludeNameCardFromArea(ComStr.KeyWord_ElementalHERO, false, card.ownerPlayer, ComVal.CardType_Monster_Fusion, ComVal.Area_Extra); Group g2 = duel.GetIncludeNameCardFromArea("", false, card.ownerPlayer, ComVal.cardType_Monster, ComVal.Area_Monster | ComVal.Area_Graveyard); g1 = g1.GetCanFusionGroup(g2); g1 = card.controller.GetCanSpSummonGroup(g1); GroupCardSelectBack callBack = delegate(Group theGroup) { Card c = theGroup.GetCard(0); Group g3 = c.cardMaterialFitler.GetGroup(g2); GroupCardSelectBack callBack1 = delegate(Group theGroup1) { normalDele finish = delegate { duel.FinishHandle(); }; normalDele d = delegate { duel.SpeicalSummon(ComVal.Area_Extra, c, card.ownerPlayer, card, ComVal.reason_FusionSummon, effect, 0, finish); }; duel.AddDelegate(d); duel.SendToRemove(ComVal.Area_Graveyard | ComVal.Area_Monster, theGroup1, card, ComVal.reason_FusionMaterial, effect); }; duel.SelectFusionMaterialFromGroup(g3, callBack1, c); }; duel.SelectCardFromGroup(g1, callBack, 1, card.controller); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Group g1 = duel.GetIncludeNameCardFromArea("", false, card.ownerPlayer, ComVal.CardType_Monster_Fusion, ComVal.Area_Extra); Group g2 = duel.GetIncludeNameCardFromArea("", false, card.ownerPlayer, ComVal.cardType_Monster, ComVal.Area_Hand | ComVal.Area_Monster); g1 = g1.GetCanFusionGroup(g2); g1 = card.controller.GetCanSpSummonGroup(g1); if (g1.GroupNum == 0) { duel.FinishHandle(); return; } GroupCardSelectBack callBack = delegate(Group theGroup) { Card c = theGroup.GetCard(0); Group g3 = c.cardMaterialFitler.GetGroup(g2); GroupCardSelectBack callBack1 = delegate(Group theGroup1) { normalDele dele = delegate { duel.FinishHandle(); }; normalDele d = delegate { duel.SpeicalSummon(ComVal.Area_Extra, c, card.ownerPlayer, card, ComVal.reason_Effect, effect, 0, dele); }; duel.AddDelegate(d); duel.SendToGraveyard(ComVal.Area_Monster | ComVal.Area_Hand, theGroup1, card, ComVal.reason_FusionMaterial); }; duel.SelectFusionMaterialFromGroup(g3, callBack1, c); }; duel.SelectCardFromGroup(g1, callBack, 1, card.controller); }
protected void SetFlashAnimVal(List <RawImage> list, normalDele dele) { flashImageList = list; flashIntervalTimer = new Timer(0.2f); flashTimer = new Timer(1); mDele = dele; isStartFlash = true; }
IEnumerator Wait(normalDele dele) { yield return(new WaitForSeconds(0.2f)); Duel.GetInstance().SetIsAnim(false); dele(); gameObject.SetActive(false); }
public void Update() { if (IsFree) { normalDele dele = (normalDele)mQueue.Dequeue(); IsFree = false; dele(); } }
private void Operation1(IDuel duel, Card card, LauchEffect effect, Group target = null) { normalDele d = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Graveyard, card, card.controller, card, ComVal.reason_Effect, effect, 0, d); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { normalDele norDele = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Hand, card, card.ownerPlayer, card, ComVal.reason_Effect, effect, 0, norDele); }
public void ShowDrawAnim(string id, normalDele dele, int count, bool isMy) { if (isMy) { mDrawCardAnim.Play(id, dele, count); } else { oDrawCardAnim.Play(id, dele, count); } }
private void Operation1(IDuel duel, Card card, LauchEffect effect, Group target = null) { normalDele d = delegate { duel.AddLP(target.GroupNum * 300, card.controller, ComVal.reason_Effect, card, effect); duel.FinishHandle(); }; duel.AddDelegate(d, true); duel.SendToMainDeck(ComVal.Area_Graveyard, target, card, ComVal.reason_Effect, effect); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { normalDele d = delegate { duel.AddFinishHandle(); duel.DiscardFromDeck(2, card, effect, card.controller); }; duel.AddDelegate(d, true); duel.DrawCard(card.controller, 2, card, effect); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Group g = new Group(); normalDele d1 = delegate { duel.AddFinishHandle(); g = g.GetFitlerGroup(cardFiter); duel.DrawCard(card.controller, g.GroupNum, card, effect); }; duel.AddDelegate(d1, true); g = duel.DiscardFromDeck(3, card, effect, card.controller); }
IEnumerator ShowFinish() { yield return(new WaitForSeconds(3)); normalDele d = delegate { UIMgr.Instance().LoadUI(ComStr.UI_LoginUI); }; ErrorPlane.GetInstance().Show("录像结束", d); sr.Dispose(); sr.Close(); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { GroupCardSelectBack callBack = delegate(Group g) { Card c = g.GetFirstCard(); normalDele d = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Graveyard, c, card.controller, card, ComVal.reason_Effect, effect, 0, d); }; duel.SelectCardFromGroup(card.controller.group_Graveyard.GetFitlerGroup(fiter), callBack, 1, card.controller); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { if (duel.MonsterAreaIsFull(card.controller)) { duel.FinishHandle(); return; } normalDele d = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Graveyard, card, card.controller, card, ComVal.reason_Effect, effect, 0, d); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Group g = duel.GetIncludeNameCardFromArea(ComStr.KeyWord_SixSamurai, false, card.controller, ComVal.cardType_Monster, ComVal.Area_Hand, Fiter); GroupCardSelectBack callBack = delegate(Group val) { normalDele d = delegate() { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Hand, val.GetCard(0), card.controller, card, ComVal.reason_Effect, effect, 0, d); }; duel.SelectCardFromGroup(g, callBack, 1, card.controller); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { if (card.curArea.IsBind(ComVal.Area_Trap)) { normalDele d = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_NormalTrap, card, card.controller, card, ComVal.reason_Effect, effect, 0, d); } else { duel.FinishHandle(); } }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { if (!card.CanDestroy()) { duel.FinishHandle(); return; } normalDele d = delegate { duel.AddFinishHandle(); duel.DrawCard(card.controller, 1, card, effect); }; duel.AddDelegate(d, true); duel.SendToGraveyard(ComVal.Area_Field, group, card, ComVal.reason_Destroy, effect); }
private void Operation4(IDuel duel, Card card, LauchEffect effect, Group target = null) { Group g = GetTargetGroup4(duel, card); GroupCardSelectBack callBack = delegate(Group val) { Card c = val.GetFirstCard(); normalDele d = delegate() { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_Graveyard, c, card.controller, card, ComVal.reason_Effect, effect, 0, d); }; duel.SelectCardFromGroup(g, callBack, 1, card.controller); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Card target = group.GetCard(0); if (target.curArea != ComVal.Area_Graveyard) { return; } normalDele dele = delegate { duel.FinishHandle(); }; target.controller = effect.ownerCard.controller; duel.SpeicalSummon(ComVal.Area_Graveyard, target, effect.ownerCard.ownerPlayer, effect.ownerCard, ComVal.reason_Effect, effect, 0, dele); }
public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null) { Card effectDataCard = card.EffectDataCard; Group mainDeckG = duel.GetIncludeNameCardFromArea(effectDataCard.cardName, false, card.controller, ComVal.cardType_Monster, ComVal.Area_MainDeck, Fiter1); if (mainDeckG.GroupNum == 0) { duel.FinishHandle(); return; } normalDele d = delegate { duel.FinishHandle(); }; duel.SpeicalSummon(ComVal.Area_MainDeck, mainDeckG.GetCard(0), card.controller, card, ComVal.reason_Effect, effect, ComVal.CardPutType_UpRightFront, d); }
public void GetTarget(normalDele theDele) { if (getTarget == null) { return; } GroupCardSelectBack dele = delegate(Group group) { targetGroup = group; if (theDele != null) { theDele(); } }; getTarget(duel, ownerCard, this, dele); }