public override void buttonEventBase(GameObject gameObj) { base.buttonEventBase(gameObj); if (gameObj.name == "screenButton") { if (flag && beastEvolve != null) { BeastAttrWindow baw = UiManager.Instance.getWindow <BeastAttrWindow>(); if (baw != null) { baw.Initialize(beastEvolve.getBeast(), BeastAttrWindow.STOREVIEW); baw.UpdateUI(); } finishWindow(); return; } //强制引导召唤女神后直接返回主界面,同事提前清空队伍缓存 if (GuideManager.Instance.guideSid == 16006000) { ArmyManager.Instance.cleanAllEditArmy(); GuideManager.Instance.doGuide(); UiManager.Instance.openMainWindow(); dialogCloseUnlockUI = false; finishWindow(); return; } if (GuideManager.Instance.isDoesNotEqualStep(7001000) && GuideManager.Instance.isDoesNotEqualStep(12001000) && GuideManager.Instance.isDoesNotEqualStep(15001000)) { GuideManager.Instance.doGuide(); } if (GuideManager.Instance.isEqualStep(6004000) || GuideManager.Instance.isEqualStep(11004000) || GuideManager.Instance.isEqualStep(13008000) || GuideManager.Instance.isEqualStep(7001000) || GuideManager.Instance.isEqualStep(12001000) || GuideManager.Instance.isEqualStep(15001000)) { if (fatherWindow is MissionMainWindow) { GameManager.Instance.playAnimationType = 1; (fatherWindow as MissionMainWindow).nvshen(); } } else if (tkflag && fatherWindow is MissionMainWindow) { (fatherWindow as MissionMainWindow).showEffectForHero(true); } else if (!tkflag && fatherWindow is MissionMainWindow) { (fatherWindow as MissionMainWindow).showEffectForHero(false); } finishWindow(); if (UiManager.Instance.getWindow <MissionMainWindow> () != null && UiManager.Instance.getWindow <MissionMainWindow> ().gameObject.activeSelf) { UiManager.Instance.getWindow <MissionMainWindow> ().TweenerGroupIn(); } } }
public void Initialize(Texture image, BeastAttrWindow fatherWindow) { itemImage.mainTexture = image; this.fatherWindoww = fatherWindow; transform.localScale = Vector3.one; iTween.MoveTo(gameObject, iTween.Hash("position", transform.position + new Vector3(0, 0.3f, 0), "easetype", iTween.EaseType.easeInOutCubic, "time", 1f)); iTween.ScaleTo(gameObject, iTween.Hash("scale", new Vector3(1.4f, 1.4f, 1.4f), "easetype", iTween.EaseType.easeInOutCubic, "time", 1f)); Vector3 pos = new Vector3(fatherWindow.beastEffectPoint.position.x + Random.Range(-0.2f, 0.2f), fatherWindow.beastEffectPoint.position.y + Random.Range(0, 0.4f), fatherWindow.beastEffectPoint.position.z); iTween.MoveTo(gameObject, iTween.Hash("delay", 1.1f, "position", pos, "easetype", "easeInQuad", "time", 0.2f)); iTween.ScaleTo(gameObject, iTween.Hash("delay", 1.1f, "scale", new Vector3(0.2f, 0.2f, 0.2f), "easetype", "easeInQuad", "oncomplete", "overr", "time", 0.2f)); EffectManager.Instance.CreateEffect(transform, "Effect/UiEffect/SummonBeast2"); }