public void Awake() { desLabel = transform.Find("DesLabel").GetComponent<UILabel>(); energyLabel = transform.Find("EnergyLabel").GetComponent<UILabel>(); energyTitleLabel = transform.Find("EnergyTitleLabel").GetComponent<UILabel>(); btnsignleEnter = transform.Find("BtnSignleEnter").GetComponent<UIButton>(); btnteamEnter = transform.Find("BtnTeamEnter").GetComponent<UIButton>(); btnClose = transform.Find("BtnClose").GetComponent<UIButton>(); tween = transform.GetComponent<TweenScale>(); //注册按钮点击事件 EventDelegate ed1 = new EventDelegate(this,"OnSignleEnter"); btnsignleEnter.onClick.Add(ed1); EventDelegate ed2 = new EventDelegate(this, "OnClose"); btnClose.onClick.Add(ed2); EventDelegate.Set(btnteamEnter.onClick, () => { OnteamEnter(); }); battleController = GameManger._instance.GetComponent<BattleController>(); battleController.OnGetTeam += this.OnGetTeam; battleController.OnWaitTeam += this.OnWaitTeam; battleController.OnCancelTeam += this.OnCancelTeam; }
void Awake() { from = transform.FindChild("BillboardList/From"); to = transform.FindChild("BillboardList/To"); //Transform from1 = transform.FindChild("BillboardList/From1"); //Transform to1 = transform.FindChild("BillboardList/To1"); if (from == null) { return; } //if (Random.Range(0, 2) == 0) //{ //from.localPosition = new Vector3(-from.localPosition.x, from.localPosition.y, from.localPosition.z); //to.localPosition = new Vector3(-to.localPosition.x, to.localPosition.y, to.localPosition.z); //from1.localPosition = new Vector3(-from1.localPosition.x, from1.localPosition.y, from1.localPosition.z); //to1.localPosition = new Vector3(-to1.localPosition.x, to1.localPosition.y, to1.localPosition.z); //} if (transform.GetComponentsInChildren<TweenTransform>(true).Length > 0) { m_tt[0] = transform.GetComponentsInChildren<TweenTransform>(true)[0]; //m_tt[1] = transform.GetComponentsInChildren<TweenTransform>(true)[1]; } m_ts = transform.GetComponentsInChildren<TweenScale>(true)[0]; }
// Use this for initialization void Start() { timeLabel = gameObject.GetComponentInChildren<UILabel>(); god = transform.parent.gameObject.GetComponent<God>(); colorTween = gameObject.GetComponentInChildren<TweenColor>(); scaleTween = gameObject.GetComponentInChildren<TweenScale>(); }
public void Init(Bullet bullet){ State = bullet; TweenPost = ActionTarget.AddComponent<TweenPosition> (); TweenPost.duration = bullet.DurationTime; TweenPost.from = bullet.StartPoint; TweenPost.to = bullet.TargetPoint; EventDelegate.Add( TweenPost.onFinished, DeleteSelf); if(bullet.StartSize != Vector3.one){ TweenScal = ActionTarget.AddComponent<TweenScale> (); TweenScal.duration = bullet.DurationTime; TweenScal.from = bullet.StartSize; TweenScal.to = bullet.TargetSize; TweenScal.Play (true); } TweenRota = ActionTarget.AddComponent<TweenRotation>(); TweenRota.to = new Vector3(0.0f, 0.0f, 360.0f); TweenRota.duration = bullet.DurationTime; TweenRota.style = UITweener.Style.Once; EventDelegate.Add(TweenRota.onFinished, _RotationCount); TweenPost.Play (true); TweenRota.Play (true); //Invoke ("DeleteSelf", bullet.DurationTime + 1.0f); }
void Start() { whose = GameState.NO_TURN; chess1 = transform.FindChild("chess1").GetComponent<TweenScale>(); chess2 = transform.FindChild("chess2").GetComponent<TweenScale>(); chess1R = transform.FindChild("chess1").GetComponent<TweenRotation>(); chess2R = transform.FindChild("chess2").GetComponent<TweenRotation>(); }
void Awake() { m_myTransform = transform; m_spComboAttackBG = m_myTransform.FindChild("ComboAttackBG").GetComponentsInChildren<UISprite>(true)[0]; m_spComboAttackHit = m_myTransform.FindChild("ComboAttackHit").GetComponentsInChildren<UISprite>(true)[0]; m_goComboAttackNumList = m_myTransform.FindChild("ComboAttackNumList").gameObject; m_tsCombo = m_myTransform.GetComponentsInChildren<TweenScale>(true)[0]; }
public void Shutdown() { // Debug.Log("Shutting down"); mShutdown = true; tween = TweenScale.Begin(gameObject, duration, shutdown); tween.method = UITweener.Method.EaseInOut; tween.eventReceiver = gameObject; tween.callWhenFinished = "Off"; }
public override void CreateEffect() { if (bTweenPos) { float fromToValX = to.x - from.x; float fromToValY = to.y - from.y; Vector3 fromPos = new Vector3(transform.localPosition.x - fromToValX, transform.localPosition.y - fromToValY, transform.localPosition.z); Vector3 toPos = transform.localPosition; //创建需要的特效 if (mTweenPos == null) { mTweenPos = TweenPosition.Begin(transform.gameObject, duration, toPos); } mTweenPos.from = fromPos; mTweenPos.to = toPos; mTweenPos.duration = duration; mTweenList.Add(mTweenPos); } if (bTweenScale) { //创建需要的特效 if (mTweenScale == null) { mTweenScale = TweenScale.Begin(transform.gameObject, duration, endScale); } mTweenScale.value = startScale; mTweenScale.from = startScale; mTweenScale.to = endScale; mTweenScale.duration = duration; mTweenList.Add(mTweenScale); } if (bTweenAlpha) { if (GetComponent<UIPanel>() != null) //若为 UIPanel, 添加AlphaTween到自己 { AddEffectTo(gameObject); } else // 否则,添加AlphaTween到所有自控件 { List<UIWidget> list = new List<UIWidget>(); UIToolkits.FindComponents<UIWidget>(transform, list); foreach (UIWidget widget in list) { AddEffectTo(widget.gameObject); } } } }
void OnHover(bool isOver) { if (enabled && !mShutdown) { if (!mInitDone) Init(); tween = TweenScale.Begin(gameObject, duration, isOver ? Vector3.Scale(mScale, hover) : mScale); tween.method = UITweener.Method.EaseInOut; tween.eventReceiver = null; } }
void Awake() { tween = transform.GetComponent<TweenScale>(); BoxCollider[] boxs = transform.GetComponentsInChildren<BoxCollider>(true); foreach (var co in boxs) { UIEventListener listener = UIEventListener.Get(co.gameObject); listener.onClick = ButtonClick; } AudioSlider = transform.Find("AudioSlider").gameObject; }
// Use this for initialization void Start() { isOpen = false; correctPosition = transform.position; transform.position = hidingOffset; //hide offscreen on level start tweener = gameObject.GetComponent<TweenScale>(); tweener.eventReceiver = gameObject; }
// Use this for initialization void Awake() { isOpen = false; correctPosition = transform.position; transform.position = HIDING_OFFSET; //hide offscreen on level start tweener = gameObject.GetComponent<TweenScale>(); tweener.eventReceiver = gameObject; }
void Start() { stateLabel = transform.Find("StateLabel").GetComponent<UILabel>(); timeLabel = transform.Find("TimeLabel").GetComponent<UILabel>(); cancelButton = transform.Find("CancelButton").GetComponent<UIButton>(); tween = GetComponent<TweenScale>(); EventDelegate ed = new EventDelegate(this,"OnCancelButtonClick"); cancelButton.onClick.Add(ed); }
void Start() { desLabel = transform.Find("Sprite/DesLabel").GetComponent<UILabel>(); energyTagLabel = transform.Find("Sprite/EnergyTagLabel").GetComponent<UILabel>(); energyLabel = transform.Find("Sprite/EnergyLabel").GetComponent<UILabel>(); closeButton = transform.Find("BtnClose").GetComponent<UIButton>(); tween = this.GetComponent<TweenScale>(); EventDelegate ed2 = new EventDelegate(this,"OnClose"); closeButton.onClick.Add(ed2); }
// Use this for initialization void Start () { // ((SphereCollider)this.collider).radius = 22f; ((BoxCollider)this.collider).size = new Vector3(66f,39f,.3f); scaleTween = GetComponent<TweenScale>(); scaleTween.to = this.transform.localScale * 1.2f; scaleTween.duration = .3f; scaleTween.enabled = false; NodeID = nodeIDCount; nodeIDCount++; //this.NodeSprite.name = "nodeBG"; }
void Awake() { _instance = this; acceptBtn = transform.Find("Accept-Button").GetComponent<UIButton>(); talkLabel = transform.Find("Talk-Label").GetComponent<UILabel>(); tween = this.GetComponent<TweenScale>(); EventDelegate ed = new EventDelegate(this, "OnAccept"); acceptBtn.onClick.Add(ed); EventDelegate ed1 = new EventDelegate(this,"OnTweenFinish"); tween.onFinished.Add(ed1); gameObject.SetActive(false); }
void Awake() { BloodAnim.SetActive(false); m_ts = BloodAnim.GetComponentsInChildren<TweenScale>(true)[0]; m_ts.enabled = false; m_spBloodFG = BloodFG.GetComponentsInChildren<UISprite>(true)[0]; m_spBloodAnim = BloodAnim.GetComponentsInChildren<UISprite>(true)[0]; m_vec3FGFullSize = BloodFG.transform.localScale; m_vec3FGPos = BloodFG.transform.localPosition; }
private void InitFloatMsgForPower() { m_goFloatMsgForPower = GetUIChild("floatMsgForPower").gameObject; m_lblFloatMsgForPower = GetUIChild("floatMsgForPowerLbl").GetComponent<UILabel>(); m_tpFloatMsgForPower = m_goFloatMsgForPower.GetComponent<TweenScale>(); m_taFloatMsgForPower = m_goFloatMsgForPower.GetComponent<TweenAlpha>(); m_taFloatMsgForPowerBg = GetUIChild("floatMsgForPowerBg").GetComponent<TweenAlpha>(); m_tpFloatMsgForPower.enabled = false; m_taFloatMsgForPower.enabled = false; m_taFloatMsgForPowerBg.enabled = false; m_goFloatMsgForPower.SetActive(false); }
protected override void OnLoop() { if (this.item.loopAnimation) { this.isLooping = true; if (this.mLoop == null) { this.mLoop = TweenScale.Begin(this.sprite.cachedGameObject, 1f, Vector3.one); this.mLoop.from = Vector3.one * 1.5f; this.mLoop.style = UITweener.Style.PingPong; this.mLoop.method = UITweener.Method.Linear; } } }
void Start(){ Tweenrota = spriteObj.AddComponent<TweenRotation>(); Tweenscal = spriteObj.AddComponent<TweenScale>(); Tweenrota.to = new Vector3(0.0f, 0.0f, 360.0f); Tweenrota.duration = 2.0f; Tweenrota.style = UITweener.Style.Once; EventDelegate.Add(Tweenrota.onFinished, _RotationCount); Tweenscal.from = new Vector3(0.1f, 0.1f, 1.0f); Tweenscal.to = new Vector3(1.0f, 1.0f, 1.0f); Tweenscal.duration = 2.0f; EventDelegate.Add( Tweenscal.onFinished, deleteself); }
void Awake() { //Item UISprite 를 얻는다. this.itemImage = this.transform.FindChild("ItemImage").GetComponent<UISprite>(); int rand2 = Random.Range(0, 2); //빈아이템으로... if (rand2 == 0) { this.SetItemInfo(null); } //아이템 무작위 세팅 else { // 랜덤하게 아이템 정보 셋팅 int rand = Random.Range(0, 3); ItemInfo newItemInfo = new ItemInfo(); if (rand == 0) { newItemInfo.name = "송대관의 빽구두"; newItemInfo.type = 1; } else if (rand == 1) { newItemInfo.name = "송해의 어깨뽕"; newItemInfo.type = 0; } else if (rand == 2) { newItemInfo.name = "태진아의 금팔찌"; newItemInfo.type = 2; } this.SetItemInfo(newItemInfo); } this.tweenScale = this.GetComponent<TweenScale>(); if (this.tweenScale != null) this.tweenScale.enabled = false; }
private void CreateObjects() { this.mGoldNumGo = base.transform.Find("goldInfo").gameObject; this.mGoldNumTxt = this.mGoldNumGo.transform.FindChild("goldNum").GetComponent<UILabel>(); this.mChatBtn = base.transform.Find("chatBtnBg").gameObject; GameObject gameObject = this.mChatBtn.transform.Find("chatBtn").gameObject; this.mChatTweenScale = gameObject.GetComponent<TweenScale>(); UIEventListener expr_83 = UIEventListener.Get(gameObject); expr_83.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_83.onClick, new UIEventListener.VoidDelegate(this.OnChatBtnClicked)); GameObject gameObject2 = base.transform.FindChild("pauseBtnBg/pauseBtn").gameObject; UIEventListener expr_C0 = UIEventListener.Get(gameObject2); expr_C0.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_C0.onClick, new UIEventListener.VoidDelegate(this.OnPauseBtnClicked)); GamePadMgr.RegClickDelegate(8192, new GamePadMgr.VoidDelegate(this.ProcessPauseBtnClick)); this.mBoxNoticePrefab = Res.LoadGUI("GUI/IngameBoxNotice"); }
void Awake() { _instance = this; taskListGrid = transform.Find("Scroll View/Grid").GetComponent<UIGrid>(); taskItemPrefab = Resources.Load<GameObject>("Task-Item"); closeBtn = transform.Find("btn-close").GetComponent<UIButton>(); tween = this.GetComponent<TweenScale>(); EventDelegate ed = new EventDelegate(this, "On_TaskUI_Close_Click"); closeBtn.onClick.Add(ed); EventDelegate ed1 = new EventDelegate(this,"OnTweenFinish"); tween.onFinished.Add(ed1); //TaskManager._instance.OnAsyncTaskComplete += this.OnAsyncTaskComplete; TaskManager._instance.OnAsyncTaskComplete = this.OnAsyncTaskComplete; }
/// <summary> /// Playbackward this instance. /// close the panel /// </summary> protected void playbackward () { tweenaph = TweenAlpha.Begin (TEXTURE, scaleAnimationTime * 0.8f, 0f); tweenaph.from = 1.0f; tweenaph.SetStartToCurrentValue (); tweenaph.to = 0.0f; tweenaph.animationCurve = curve1; DIALOG.SetActive (true); tweenScale = TweenScale.Begin (DIALOG, scaleAnimationTime * 1.1f, new Vector3 (1f, 0f, 1f)); EventDelegate.Add (tweenScale.onFinished, onAniDoneBackward); tweenaph.SetStartToCurrentValue (); questionTextView.text = ""; all_buttons (false); }
void Awake() { tween = this.transform.GetComponent<TweenScale>(); desLabel = this.transform.Find("Sprite/DesLabel").GetComponent<UILabel>(); energyTagLabel = this.transform.Find("Sprite/EnergyTagLabel").GetComponent<UILabel>(); energyLabel = this.transform.Find("Sprite/EnergyLabel").GetComponent<UILabel>(); btnEnterGO = this.transform.Find("BtnEnter").gameObject; enterButton = this.transform.Find("BtnEnter").GetComponent<UIButton>(); closeButton = this.transform.Find("BtnClose").GetComponent<UIButton>(); EventDelegate ed1 = new EventDelegate(this, "OnEnter"); enterButton.onClick.Add(ed1); EventDelegate ed2 = new EventDelegate(this, "OnClose"); closeButton.onClick.Add(ed2); }
void Awake() { m_tweenScale = GetComponent<TweenScale>(); if (m_tweenScale == null) { m_tweenScale = gameObject.AddComponent<TweenScale>(); } m_tweenAlpha = GetComponent<TweenAlpha>(); if (m_tweenAlpha == null) { m_tweenAlpha = gameObject.AddComponent<TweenAlpha>(); } transform.localPosition = Vector3.zero; InitBackGround(); }
// Use this for initialization void Start () { rangeTransform.gameObject.SetActive(false); myAudioSource = GetComponent<AudioSource>(); myTransform = transform; myAnimator = GetComponentInChildren<Animator>(); myCollider = GetComponent<Collider2D>(); rangeTween = rangeSprite.GetComponent<TweenScale>(); originalRangeAlpha = rangeSprite.color.a; originalScale = plasmetteTransform.localScale; originalPosition = plasmetteTransform.position; MenuController.OnPanelClosed += Reactivate; GameController.OnGameStart += ChangeColor; LevelDesign.OnPlayerLevelUp += ChangeColor; GameController.OnLoseStacks += ChangeColor; }
static int get_cachedTransform(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); if (o == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name cachedTransform"); } else { LuaDLL.luaL_error(L, "attempt to index cachedTransform on a nil value"); } } TweenScale obj = (TweenScale)o; LuaScriptMgr.Push(L, obj.cachedTransform); return(1); }
private IEnumerator SkillStart() { playSkill = true; yield return((object)new WaitForEndOfFrame()); panelChange.UnLock(); Vector3 v = skillIconOn.get_transform().get_localPosition(); v.z = 0f; skillIconOn.get_transform().set_localPosition(v); alphaTween = TweenAlpha.Begin(skillIconOn.get_gameObject(), 0.5f, 0.01f); scaleTween = TweenScale.Begin(skillIconOn.get_gameObject(), 0.5f, new Vector3(2f, 2f, 2f)); yield return((object)new WaitForSeconds(1.5f)); skillIconOn.get_transform().set_localPosition(skillIconOnPos); skillIconOn.get_transform().set_localScale(Vector3.get_one()); skillIconOn.alpha = 1f; panelChange.Lock(); playSkill = false; alphaTween = null; scaleTween = null; routineWork = null; }
public static void SelectedButtonsZoomUpDown(GameObject[] Buttons, int Index) { if (!UISelectedObject.ZoomInOut) { return; } for (int i = 0; i < Buttons.Length; i++) { if (Index == i) { TweenScale tweenScale = TweenScale.Begin(Buttons[i], Util.ButtonDurationTime, Vector3.get_one() * Util.ButtonZoomUp); tweenScale.from = Vector3.get_one(); tweenScale.duration = Util.ButtonDurationTime; tweenScale.style = UITweener.Style.PingPong; } else { TweenScale tweenScale2 = TweenScale.Begin(Buttons[i], 0f, Vector3.get_one()); tweenScale2.from = Vector3.get_one(); tweenScale2.to = Vector3.get_one(); } } }
private void AnimateScale(UIWidget widget, bool placeAbove, float bottom) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) GameObject go = widget.get_gameObject(); Transform cachedTransform = widget.cachedTransform; float num = (float)activeFontSize * activeFontScale + mBgBorder * 2f; cachedTransform.set_localScale(new Vector3(1f, num / (float)widget.height, 1f)); TweenScale.Begin(go, 0.15f, Vector3.get_one()).method = UITweener.Method.EaseOut; if (placeAbove) { Vector3 localPosition = cachedTransform.get_localPosition(); cachedTransform.set_localPosition(new Vector3(localPosition.x, localPosition.y - (float)widget.height + num, localPosition.z)); TweenPosition.Begin(go, 0.15f, localPosition).method = UITweener.Method.EaseOut; } }
public static void PlaySpriteToFaceAnimation(tk2dSprite sprite, Color c) { tk2dSprite spriteCopy = GameObject.Instantiate(sprite) as tk2dSprite; spriteCopy.transform.parent = sprite.transform.parent; spriteCopy.transform.localPosition = new Vector3(0, 0, -5); spriteCopy.transform.localScale = Vector3.one; spriteCopy.color = c; TweenScale iconTweenScale = TweenScale.SetScale(spriteCopy.gameObject, Vector3.one * 5f, 0.3f); iconTweenScale.BeginScale = Vector3.one; TweenColor iconTweenColor = TweenColor.SetColor(spriteCopy.gameObject, Color.clear, 0.3f); iconTweenColor.beginColor = Color.white; iconTweenColor.useChanelMask[0] = iconTweenColor.useChanelMask[1] = iconTweenColor.useChanelMask[2] = false; iconTweenColor.SetOnFinishedDelegate(delegate { Destroy(spriteCopy.gameObject); }); }
protected override void OnDisable() { base.OnDisable(); if (Started && tweenTarget != null) { #if NGUI_DLL TweenScale tc = tweenTarget.GetComponent <TweenScale>(); if (tc != null) { tc.scale = _scale; tc.enabled = false; } #else ScaleScheduler tc = tweenTarget.GetComponent <ScaleScheduler>(); if (tc != null) { tc.ScaleVector = _scale; tc.enabled = false; } #endif } }
private void SetAnimation(bool click) { if (m_tChick.Count <= 0) { return; } for (int i = 0; i < m_tChick.Count; i++) { var btn = m_cardObj[m_tChick[i]]; TweenSize size = btn.gameObject.GetComponent <TweenSize>(); if (click) { TweenScale scale = btn.gameObject.GetComponent <TweenScale>(); size?.onStart.AddListener(delegate { m_group.interactable = false; }); size?.onComplete.AddListener(delegate { if (moduleUnion.CardSignInfo.changeTimes > 0) { m_group.interactable = true; } }); if (moduleUnion.CardSignInfo.changeTimes > 0) { size?.PlayForward(); scale?.PlayForward(); } } else { size.PlayReverse(); } } if (!click) { m_tChick.Clear(); } }
void catchItemBehavior(GameObject go) { if (_bClickItem) return; _bClickItem = true; Destroy(transform.GetComponent<TweenScale>()); Destroy(transform.GetComponent<TweenPosition>()); TweenScale scaleAction = _ItemIcon.gameObject.AddComponent<TweenScale>(); scaleAction.from = new Vector3(1.5f, 1.5f, 1.5f); scaleAction.to = new Vector3(0, 0, 0); scaleAction.duration = 0.5f; EventDelegate.Add(scaleAction.onFinished, ScaleBahaviorEndToDestory, true); Transform tf_camera = StartUpScene._uiCamera; Camera ui_cam = tf_camera.GetComponent<Camera>(); Transform tf_scene_camera = StartUpScene._fishCamera; Camera scene_cam = tf_scene_camera.GetComponent<Camera>(); // Vector3 ownerpos = BattleManager.getInstance().GetPlayerPos(GameDataMgr.PLAYER_DATA.UserId.ToString()); // Vector3 ownerScreenPoint = scene_cam.WorldToScreenPoint(ownerpos); // Vector3 pFinalOwner = ui_cam.ScreenToWorldPoint(ownerScreenPoint); // Vector3 endPos = new Vector3(pFinalOwner.x, pFinalOwner.y, 0); // _endPos = new Vector3(pFinalOwner.x, pFinalOwner.y, transform.position.z); transform.position = _endPos; Vector3 _endLocalPos = transform.localPosition; transform.position = _startPos; TweenPosition posAction = transform.gameObject.AddComponent<TweenPosition>(); posAction.from = transform.localPosition; posAction.to = _endLocalPos; posAction.duration = 0.5f; }
public void Fire() { if (grenadeObject != null) { if (Flight_AudioManager.Instance != null) { Flight_AudioManager.Instance.StopAudio(AudioStep.Yindaoyu36); } GameObject go = (GameObject)Instantiate(grenadeObject); go.transform.position = transform.position + Vector3.forward * 2; go.transform.localScale = Vector3.one; if (go.transform.GetChild(0)) { go.transform.GetChild(0).localScale = grenadeMeshScale; } Flight_Grenade grenade = go.transform.GetComponent <Flight_Grenade> (); grenade.Origin = transform.position; if (Flight_EnemyController.instance != null) { if (Flight_EnemyController.instance.enabled) { grenade.target = Flight_EnemyController.instance.transform.position; } } if (Flight_EnemyControllerGuide.instance.enabled) { grenade.target = Flight_EnemyControllerGuide.instance.transform.position; } TweenScale tScale = TweenScale.Begin(go, grenadeScaleTime, grenadeScale); tScale.style = UITweener.Style.Once; if (Flight_GuideManager.Instance != null) { Flight_GuideManager.Instance.uiGuide.CloseAll(); } } }
void AddTween(float time) { if (time == 0) { End(); return; } if (data.showType.Contains(4)) { TweenAlphaAllChild ta = TweenAlphaAllChild.Begin(gameObject, time, 0); EventDelegate.Add(ta.onFinished, OnFinishEnd); //ta.onFinished = OnFinishEnd; } else if (data.showType.Contains(5)) { TweenAlphaAllChild ta = TweenAlphaAllChild.Begin(gameObject, time / 2, 1); ta.alpha = 0; ta.from = 0; ta.style = UITweener.Style.PingPong; CancelInvoke("End"); Invoke("End", time); } else if (data.showType.Contains(6)) { TweenScale ts = TweenScale.Begin(gameObject, time, new Vector3(1.1f, 1.1f, 1.1f)); ts.method = UITweener.Method.BounceIn; CancelInvoke("End"); Invoke("End", time); } else if (data.showType.Contains(7)) { Vector3 p = transform.localPosition; TweenPosition.Begin(gameObject, time, p + data.flowLocaV3); TweenScale ts = TweenScale.Begin(gameObject, time, Vector3.zero); EventDelegate.Add(ts.onFinished, OnFinishEnd); } }
void AddJumpList() { if (jumpContentList.Count <= 0) { return; } string content = jumpContentList[0]; jumpContentList.RemoveAt(0); ResourceManager.Instance.LoadPrefab("jumpLabel", (name, obj) => { obj.AddComponent <TextDestroy>(); obj.GetComponent <UILabel>().text = content; Transform tparent = UICamera.mainCamera.transform; obj.transform.SetParent(tparent); obj.transform.localScale = Vector3.one; jumpList.Insert(0, obj); TweenScale.Begin(obj, 0.1f, new Vector3(1.16f, 1.16f, 1.16f)); index++; TimerManager.AddTimer("index" + index, 0.1f, OnScaleFinished, obj); if (jumpList.Count > 1) { TweenPosition.Begin(jumpList[1].gameObject, 0.2f, jumpList[1].transform.localPosition + pos); TweenScale.Begin(jumpList[1].gameObject, 0.1f, new Vector3(0.9f, 0.9f, 0.9f)); } if (jumpList.Count > 2) { TweenPosition.Begin(jumpList[2].gameObject, 0.2f, jumpList[2].transform.localPosition + pos); TweenScale.Begin(jumpList[2].gameObject, 0.1f, new Vector3(0.8f, 0.8f, 0.8f)); } if (jumpList.Count > 3) { MonoBehaviour.Destroy(jumpList[3].gameObject); jumpList.RemoveAt(3); } }); }
public void SetCoinInfo() { int newGold = LocalPlayer.Get().playerData.pack.GetItem((int)NetMessage.CoinId.Gold); if (newGold != oldGold) { TweenScale ts = goldLabel.gameObject.GetComponent <TweenScale> (); ts.ResetToBeginning(); ts.from = new Vector3(1, 1, 1); ts.to = new Vector3(1.3f, 1.3f, 1.3f); ts.duration = 0.5f; ts.PlayForward(); ts.SetOnFinished(() => { ts.PlayReverse(); }); CoroutineMono.Start(UpdateGoldCoroutine()); } int oldJewel = int.Parse(jewelLabel.text); int newJewel = LocalPlayer.Get().playerData.pack.GetItem((int)NetMessage.CoinId.Jewel); if (newJewel != oldJewel) { TweenScale ts = jewelLabel.gameObject.GetComponent <TweenScale> (); ts.ResetToBeginning(); ts.from = new Vector3(1, 1, 1); ts.to = new Vector3(1.2f, 1.2f, 1.2f); ts.duration = 0.5f; ts.PlayForward(); ts.SetOnFinished(() => { ts.PlayReverse(); }); CoroutineMono.Start(UpdateJewelCoroutine()); } }
public static void SafeGetTweenScale(this GameObject obj, Vector3 from, Vector3 to, float duration, float delay, UITweener.Method method = UITweener.Method.Linear, UITweener.Style style = UITweener.Style.Once, GameObject eventReceiver = null, string callWhenFinished = "") { if ((bool)obj.GetComponent <TweenScale>()) { TweenScale component = obj.GetComponent <TweenScale>(); component.ResetToBeginning(); component.from = from; component.to = to; component.duration = duration; component.delay = delay; component.method = method; component.style = style; component.eventReceiver = eventReceiver; if (component.eventReceiver != null) { component.callWhenFinished = callWhenFinished; } component.PlayForward(); } else { TweenScale component = obj.AddComponent <TweenScale>(); component.from = from; component.to = to; component.duration = duration; component.method = method; component.delay = delay; component.style = style; component.eventReceiver = eventReceiver; if (component.eventReceiver != null) { component.callWhenFinished = callWhenFinished; } component.PlayForward(); } }
protected override void OnAwake() { base.OnAwake(); m_ts = CacheTransform.GetComponent <TweenScale>(); m_collider = CacheTransform.GetComponent <BoxCollider>(); m_tsNone = CacheTransform.Find("Content/None"); UIEventListener.Get(m_tsNone.gameObject).onClick = (obj) => { InvokeUIDlg(UIEventType.Click, this, null); }; m_tsCharacterInfo = CacheTransform.Find("Content/Info"); m_spCIcon = CacheTransform.Find("Content/Info/Icon").GetComponent <UISpriteEx>(); m_spSelectBg = CacheTransform.Find("Content/Info/Bg").GetComponent <UISpriteEx>(); m_tsSelectMask = CacheTransform.Find("Content/Info/SelectMask"); m_labLv = CacheTransform.Find("Content/Info/Lv").GetComponent <UILabel>(); m_labName = CacheTransform.Find("Content/Info/Name").GetComponent <UILabel>(); m_labLeftTime = CacheTransform.Find("Content/Info/DeleteLeftTime").GetComponent <UILabel>(); SetTriggerEffect(false); m_deleteBtn = CacheTransform.Find("Content/Info/SelectMask/DeleteRoleBtn").gameObject; if (m_deleteBtn != null) { UIEventListener.Get(m_deleteBtn).onClick = onClick_DeleteRoleBtn_Btn; } }
public static void SelectedObjectZoomUpDown(GameObject[] Buttons, int Index, float Zoom_Rate_Normal, float Zoom_Rate_Zoom, float time) { if (!ZoomInOut) { return; } for (int i = 0; i < Buttons.Length; i++) { if (Index == i) { TweenScale tweenScale = TweenScale.Begin(Buttons[i], Zoom_Rate_Normal, Vector3.one * Zoom_Rate_Zoom); tweenScale.duration = time; tweenScale.style = UITweener.Style.PingPong; tweenScale.ignoreTimeScale = true; } else { TweenScale tweenScale2 = TweenScale.Begin(Buttons[i], Zoom_Rate_Normal, Vector3.one); tweenScale2.duration = time; tweenScale2.style = UITweener.Style.Once; tweenScale2.ignoreTimeScale = true; } } }
// public GameObject PopupErrorMessageBox(string title, string content, Action OKCallback = null, Action CancelCallback = null) // { // GameObject errorDialog = (GameObject)Instantiate(Resources.Load(errorMessageDialogPath)); // // errorDialog.transform.parent = transform; // errorDialog.transform.localScale = Vector3.one; // // errorDialog.GetComponent<CommonMessageDialog>().InitUI(title, content, OKCallback, CancelCallback); // // PushDialog(errorDialog); // // return errorDialog; // } // public GameObject PopupErrorMessageBoxOneButton(string code, Action OKCallback = null, Action CancelCallback = null) // { // string content = ErrorCodeParser.ErrorContentByCode(code); // string title = ErrorCodeParser.ErrorTitleByCode(code); // // GameObject errorDialog = (GameObject)Instantiate(CommonAsset.Load(errorMessageDialogWithOneButtonPath)); // // errorDialog.transform.parent = transform; // errorDialog.transform.localScale = Vector3.one; // errorDialog.transform.localPosition = Vector3.zero; // // errorDialog.GetComponent<CommonMessageDialog>().InitUI(title, content, OKCallback, CancelCallback); // // errorDialog.GetComponent<DialogBase>().style = DialogStyle.ErrorDialog; // PushDialog(errorDialog); // // return errorDialog; // } // private float lastPopupMessageTime = 0; // public GameObject PopupMessage(string msg, float duration = 1.2f) { // if (string.IsNullOrEmpty(msg)) return null; // // string strippenMsg = NGUIText.StripSymbols(msg); // if (strippenMsg.Length > 16) { // insert \n // int insertIndex = 16; // for (int i = insertIndex - 1; i >= insertIndex - 7 && i >= 0; i--) { // if (msg[i] == '[') { // int sub = 0; // bool bold = false; // bool italic = false; // bool underline = false; // bool strikethrough = false; // int retVal = i; // // if (NGUIText.ParseSymbol(msg, ref retVal, null, false, ref sub, ref bold, ref italic, ref underline, ref strikethrough)) { // insertIndex = i; // } // // break; // } // } // msg = msg.Insert(insertIndex, "\n"); // } // // float timeSinceLast = Time.time - lastPopupMessageTime; // float delay = timeSinceLast > 0.5f ? 0.0f : 0.5f - timeSinceLast; // // GameObject o = Instantiate(messagePrefab) as GameObject; // o.GetComponentInChildren<UILabel>().text = msg; // o.GetComponent<UIPanel>().depth = 999; // // o.transform.parent = transform; // o.transform.localScale = Vector3.one; // o.transform.localPosition = Vector3.zero; // // var tp = TweenPosition.Begin(o, duration, new Vector3(0, 500)); // tp.method = UITweener.Method.EaseOut; // tp.onFinished.Add(new EventDelegate(()=>Destroy(o, 0.1f))); // tp.delay = delay; // // var ta = TweenAlpha.Begin(o, duration, 0); // ta.steeperCurves = true; // ta.method = UITweener.Method.EaseIn; // ta.delay = delay; // // lastPopupMessageTime = Time.time + delay; // // return o; // } public GameObject PopupFadeOutMessage(string msg, Vector3 pos, float duration = 1.2f) { GameObject o = Instantiate(messagePrefab) as GameObject; // o.transform.parent = transform; o.GetComponentInChildren <UILabel>().text = msg; o.GetComponent <UIPanel>().depth = 999; o.transform.parent = transform; o.transform.localScale = new Vector3(0.2f, 0.2f); o.transform.localPosition = pos; var ta = TweenAlpha.Begin(o, duration, 0); ta.steeperCurves = true; ta.method = UITweener.Method.EaseIn; ta.onFinished.Add(new EventDelegate(() => Destroy(o, 0.1f))); var ts = TweenScale.Begin(o, duration / 4, Vector3.one); ts.method = UITweener.Method.EaseOut; return(o); }
public void dialog2_appear(bool bstat) { _isBtnMaruUp = false; _ani = ((Component)base.gameObject.transform.parent).GetComponent <Animation>(); if (bstat) { _clickmask.unclickable_sec(0.45f); ((Component)base.gameObject.transform.parent).GetComponent <UIPanel>().enabled = true; base.gameObject.MoveTo(new Vector3(0f, -39f, -2f), 0f, local: true); set_dialog2_anime(value: true); TweenScale tweenScale = TweenScale.Begin(base.gameObject, 0.4f, Vector3.one); tweenScale.animationCurve = UtilCurves.TweenEaseOutBack; tweenScale.SetOnFinished(CompleteHandler); rep.setmask(3, value: true); } else { set_dialog2_anime(value: true); iTween.MoveTo(base.gameObject, iTween.Hash("islocal", true, "x", 0f, "y", 800, "z", -2, "delay", 0.3f, "time", 0f)); iTween.ScaleTo(base.gameObject, iTween.Hash("islocal", true, "x", 0.6f, "y", 0.6f, "z", 0.6f, "delay", 0.3f, "time", 0f, "easetype", iTween.EaseType.easeOutBack, "oncomplete", "CompleteHandler_onClose", "oncompletetarget", base.gameObject)); _ani.Play("dialog2_off"); rep.setmask(3, value: false); } }
public static void PlayPanelScale(PanelBase panel, bool openOrClosed, EventDelegate.Callback callBack = null) { TweenScale ts = panel.gameObject.GetComponent <TweenScale>(); if (ts == null) { ts = panel.gameObject.AddComponent <TweenScale> (); } ts.from = Vector3.zero; ts.to = Vector3.one; ts.duration = 0.2f; ts.method = UITweener.Method.EaseInOut; ts.SetOnFinished(callBack); if (openOrClosed) { ts.PlayForward(); } else { ts.PlayReverse(); } }
private void DoCanUpStar() { CanStarResult result = buildingM.GetCanUpStar(m_Info); if (result == CanStarResult.CanUp) { TweenScale ts = MyHead.BtnShengXing.gameObject.GetComponent <TweenScale>(); if (ts != null) { return; } MyHead.BtnShengXing.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f); TweenScale ts2 = TweenScale.Begin(MyHead.BtnShengXing.gameObject, 0.2f, new Vector3(1.2f, 1.2f, 1.2f)); ts2.style = UITweener.Style.PingPong; } else { TweenScale ts = MyHead.BtnShengXing.gameObject.GetComponent <TweenScale>(); if (ts != null) { Destroy(ts); } } }
private void ItemsTweenStep1() { ceilIndex++; Transform curChild = gridTran.GetChild(ceilIndex); curChild.gameObject.SetActive(true); UIWidget wdgt = curChild.gameObject.GetComponent <UIWidget>(); if (wdgt != null) { Vector3 tempScale = wdgt.transform.localScale; wdgt.transform.localScale = Vector3.zero; TweenScale ta = TweenScale.Begin(curChild.gameObject, this.tweenDuration, tempScale); } if (ceilIndex < gridTran.childCount - 1) { StartCoroutine(DelayCallFun.DoDelay(() => { ItemsTweenStep1(); }, this.ceilTweenInterval)); } }
public void Initialize(GameObject rootObject, string questDesc, string questRewards) { _questDesc.text = questDesc; float offset = _questDesc.transform.localScale.y * 1.1f; float lineThickness = (questDesc.Split (new string[] {"\n"}, System.StringSplitOptions.None).Length) * offset; _questRewards.text = questRewards; _rootObject = rootObject; float rewardsPosY = _questDesc.transform.localPosition.y - lineThickness; _questRewards.transform.localPosition = new Vector3 (0, rewardsPosY); _tweenAlpha = gameObject.GetComponent<TweenAlpha> (); _tweenScale = gameObject.GetComponent<TweenScale> (); // float y = _questDesc.transform.localPosition.y - lineThickness; float buttonY = Mathf.Min (rewardsPosY - offset * 2, -75f); _completeButton.transform.localPosition = new Vector3 (0, buttonY); }
public override void EnterTask() { switch (flashTask.Type) { case FlashType.FlashAlpha: TweenAlpha.Begin(objFlash.gameObject, 0f, Convert.ToInt32(flashTask.StartEffect)); tween = TweenAlpha.Begin(objFlash, flashTask.During, Convert.ToInt32(flashTask.TargetEffect)); break; case FlashType.FlashMove: tween = TweenPosition.Begin(objFlash, flashTask.During, GameMethod.ResolveToVector3(flashTask.TargetEffect, ';')); break; case FlashType.FlashScale: tween = TweenScale.Begin(objFlash, flashTask.During, GameMethod.ResolveToVector3(flashTask.TargetEffect, ';')); break; } tween.method = flashTask.EffectType; tween.style = flashTask.Style; if (tween.style == UITweener.Style.Once) { EventDelegate.Add(tween.onFinished, FlashEnd, true); } }
IEnumerator Play(GameObject obj) { Transform tran = obj.transform.Find(baseName); if (tran == null) { Debug.LogError(obj.name); } switch (openPanelType) { case OpenPanelType.None: break; case OpenPanelType.MinToMax: obj.transform.localScale = Vector3.one; if (tran != null) { TweenScale.Begin(tran.gameObject, 0.1f, Vector3.one); } break; } yield break; }
public void Show() { CancelInvoke("Hide"); Vector3 visibleScale = Vector3.one; Vector3 hiddenScale = Vector3.zero; visibleScale.z = hiddenScale.z = 1f; boxCollider.enabled = true; if (NGUITools.GetActive(gameObject) != true) { transform.localScale = hiddenScale; } NGUITools.SetActive(gameObject, true); TweenScale scaleIn = TweenScale.Begin <TweenScale>(gameObject, 0.5f); scaleIn.from = transform.localScale; scaleIn.to = visibleScale; scaleIn.method = UITweener.Method.BounceIn; scaleIn.onFinished = null; }
/// <summary> /// /// </summary> /// <param name="widget"></param> /// <param name="localPos"></param> /// <param name="gold"></param> /// <param name="needAnimo"></param> public void InstantiateChip(UIWidget widget, Vector3 localPos, int gold, bool needAnimo = true) { var chip = Instantiate(ChipCfg.ChipPerfab); var chipTs = chip.transform; chipTs.parent = _chipArea; chipTs.localPosition = localPos; chipTs.localScale = new Vector3(0.6f, 0.6f, 0.6f); _chipdepth += 2; var data = new ChipData { Value = gold, BgId = _gdata.AnteRate.IndexOf(gold), Depth = _chipdepth }; chip.UpdateView(data); chip.gameObject.SetActive(true); if (!needAnimo) { return; } _allVector3S.Add(GetClipPos(widget)); TweenPosition.Begin(chip.gameObject, _gdata.UnitTime * 1.5f, GetClipPos(widget)); var sp = chip.GetComponent <TweenPosition>(); sp.delay = _gdata.UnitTime; // sp.target = GetClipPos(widget); // sp.enabled = true; sp.AddOnFinished(() => { TweenScale.Begin(sp.gameObject, _gdata.UnitTime * 3, new Vector3(0.5f, 0.5f, 0.5f)); sp.GetComponent <TweenScale>().delay = _gdata.UnitTime * 2; }); }
public override void OnInspectorGUI() { GUILayout.Space(6f); NGUIEditorTools.SetLabelWidth(120f); TweenScale tw = target as TweenScale; GUI.changed = false; Vector3 from = EditorGUILayout.Vector3Field("From", tw.from); Vector3 to = EditorGUILayout.Vector3Field("To", tw.to); bool table = EditorGUILayout.Toggle("Update Table", tw.updateTable); if (GUI.changed) { NGUIEditorTools.RegisterUndo("Tween Change", tw); tw.from = from; tw.to = to; tw.updateTable = table; NGUITools.SetDirty(tw); } DrawCommonProperties(); }
/// <summary> /// 添加一张牌到牌堆 /// </summary> /// <param name="item"></param> /// <param name="downTime"></param> public void AddCardToPiles(MahjongItem item, float downTime) { if (item != null) { _controlItem = item; if (_direct) { GameTools.AddChild(Layout.transform, _controlItem.transform, OutCardScaleX, OutCardScaleY, false, false); OnMoveDownFinished(); } else { Vector3 nextPos = GetNextCardPosition(); GameTools.AddChild(Layout.transform, _controlItem.transform, OutCardScaleX, OutCardScaleY, false, false); _downPos = TweenPosition.Begin(_controlItem.gameObject, downTime, nextPos); TweenScale.Begin(item.gameObject, downTime, new Vector3(ItemScaleX, ItemScaleY)); Invoke("OnMoveDownFinished", downTime); } } else { Debug.LogError("打出的那张牌竟然空了,额........................"); } }
private void Start() { tweenScale = transform.GetComponent <TweenScale>(); BackpackContainer = GameObject.Find("BackpackContainer"); ButtonContainer = GameObject.Find("ButtonContainer"); TrashCan = GameObject.Find("TrashCan"); Left = GameObject.Find("Left"); Right = GameObject.Find("Right"); Page = GameObject.Find("Page"); StatesInfo = GameObject.Find("StatesInfo"); DescriptionLabel = GameObject.Find("DescriptionLabel"); EquipmentGrid = GameObject.Find("EquipmentGrid"); Left.GetComponent <UIButton>().isEnabled = false; BackpackContainer.SetActive(false); ButtonContainer.SetActive(false); TrashCan.SetActive(false); Left.SetActive(false); Right.SetActive(false); Page.SetActive(false); DescriptionLabel.SetActive(false); EquipmentGrid.SetActive(false); StatesInfo.SetActive(false); }
//public int Bpm //{ // set // { // bpm = value; // } // get // { // return bpm; // } //} //public int Speedmultiplier //{ // set // { // Speedmultiplier = value; // } //} // slot range is 1500 , 1x speed have 8 beat void Start() { if (NodeType == 0) { Sprite.spriteName = null; } else if (NodeType > 0 && NodeType < 4) { Sprite.spriteName = NodeType.ToString(); } else { Debug.LogError("wrong color code"); } speedmultiplier = SettingData.Speed; TA = gameObject.GetComponent <TweenAlpha>(); TP = gameObject.GetComponent <TweenPosition>(); TS = gameObject.GetComponent <TweenScale>(); TP.delay = Delay; TP.SetStartToCurrentValue(); TP.to = Vector3.left * 600; TP.duration = 8f / bpm * 60f / speedmultiplier; TP.PlayForward(); }
private void layer2finish1(UITweener tween) { // layer2_1.SetActive(true); TweenScale scale1 = layer2_1.AddComponent <TweenScale>(); scale1.style = UITweener.Style.Once; scale1.duration = 0.2f * speedRate; scale1.from = new Vector3(layer2_1_scale.x, layer2_1_scale.y * 1.58f, 1); scale1.to = new Vector3(layer2_1_scale.x * 0.066f, layer2_1_scale.y * 1.24f, 1); scale1.onFinished += finishLayer; addNewPlayer(scale1, 0); //.Play(true); // layer2_2.SetActive(true); TweenScale scale2 = layer2_2.AddComponent <TweenScale>(); scale2.style = UITweener.Style.Once; scale2.duration = 0.2f * speedRate; scale2.from = new Vector3(layer2_2_scale.x, layer2_2_scale.y * 1.58f, 1); scale2.to = new Vector3(layer2_2_scale.x * 0.066f, layer2_2_scale.y * 1.24f, 1); scale2.onFinished += finishLayer; addNewPlayer(scale2, 0); //scale2.Play(true); layer1finish1(tween); }
/// <summary> /// 显示黑杰克 /// </summary> public void ShowBalckJackMark() { if (_playing) { return; } _playing = true; UISprite stateSprite = GetComponent <UISprite>(); stateSprite.spriteName = "blackjack"; stateSprite.alpha = 0; stateSprite.MakePixelPerfect(); stateSprite.transform.localScale = Vector3.one * 16; gameObject.SetActive(true); //设置游戏动画 TweenScale ts = GetComponent <TweenScale>() ?? gameObject.AddComponent <TweenScale>(); ts.from = Vector3.one * 4; ts.to = Vector3.one; ts.duration = BlackjackTime; ts.ResetToBeginning(); ts.PlayForward(); TweenPosition tp = GetComponent <TweenPosition>() ?? gameObject.AddComponent <TweenPosition>(); tp.from = new Vector3(0, 480, 0); tp.to = new Vector3(0, 140, 0); tp.duration = BlackjackTime; tp.ResetToBeginning(); tp.PlayForward(); TweenAlpha.Begin(gameObject, BlackjackTime, 1); }
public void QuitAnimation(EventDelegate.Callback onComplete) { if (twScale == null) twScale = objAnimation.GetComponent<TweenScale>(); twScale.PlayReverse(); EventDelegate.Set(twScale.onFinished, onComplete); }
private void CreateObjects() { Transform transform = base.transform.Find("UIMiddle"); this.mFlowerSp = transform.Find("flower").gameObject; this.mFlowerSp.transform.localScale = Vector3.zero; this.mUIEffect0 = this.mFlowerSp.transform.Find("ui57_4").gameObject; Tools.SetParticleRenderQueue2(this.mUIEffect0, 5500); NGUITools.SetActive(this.mUIEffect0, false); this.mUIEffect1 = base.transform.Find("Texture/ui57").gameObject; Tools.SetParticleRenderQueue2(this.mUIEffect1, 5490); NGUITools.SetActive(this.mUIEffect1, false); this.mUIEffect3 = base.transform.Find("Texture/ui57_5").gameObject; Tools.SetParticleRenderQueue2(this.mUIEffect3, 5450); NGUITools.SetActive(this.mUIEffect3, false); this.mUIEffect4 = base.transform.Find("Texture/ui57_6").gameObject; Tools.SetParticleRenderQueue2(this.mUIEffect4, 5550); NGUITools.SetActive(this.mUIEffect4, false); this.mCardModel = transform.Find("modelPos").gameObject; Transform transform2 = transform.Find("rightInfo"); transform2.localScale = new Vector3(0f, 1f, 1f); this.mRightInfoBg = transform2.GetComponent<UISprite>(); this.mJinJieNum0 = transform2.Find("num0").GetComponent<UILabel>(); this.mJinJieNum1 = transform2.Find("num1").GetComponent<UILabel>(); Transform transform3 = transform2.Find("hpBg"); this.mHpNum0 = transform3.Find("num").GetComponent<UILabel>(); this.mHpNum1 = transform3.Find("num2").GetComponent<UILabel>(); Transform transform4 = transform2.Find("attackBg"); this.mAttackNum0 = transform4.Find("num").GetComponent<UILabel>(); this.mAttackNum1 = transform4.Find("num2").GetComponent<UILabel>(); Transform transform5 = transform2.Find("wufangBg"); this.mWufangNum0 = transform5.Find("num").GetComponent<UILabel>(); this.mWufangNum1 = transform5.Find("num2").GetComponent<UILabel>(); Transform transform6 = transform2.Find("fafangBg"); this.mFafangNum0 = transform6.Find("num").GetComponent<UILabel>(); this.mFafangNum1 = transform6.Find("num2").GetComponent<UILabel>(); this.mContinueBtn = transform.Find("continueBtn").gameObject; UIEventListener expr_298 = UIEventListener.Get(this.mContinueBtn); expr_298.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_298.onClick, new UIEventListener.VoidDelegate(this.OnContinueBtnClick)); this.mContinueScale = this.mContinueBtn.GetComponent<TweenScale>(); this.mContinueBtn.transform.localScale = Vector3.zero; this.mSequenceForSuc = new Sequence(new SequenceParms().UpdateType(UpdateType.TimeScaleIndependentUpdate)); }