private void PlayAllCompleteAnimation(EventDelegate.Callback onFinished = null) { //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) Transform ctrl = GetCtrl(UI.OBJ_COMPLETE); if (ctrl == null) { onFinished?.Invoke(); } else { SetActive(ctrl, true); UITweenCtrl component = ctrl.GetComponent <UITweenCtrl>(); if (component == null) { onFinished?.Invoke(); } else { SoundManager.PlayOneshotJingle(40000392, null, null); ParticleSystem component2 = GetCtrl(UI.OBJ_PARTICLE_2).GetComponent <ParticleSystem>(); component2.GetComponent <ParticleSystemRenderer>().get_sharedMaterial().set_renderQueue(4000); this.StartCoroutine(WaitAndDo(onFinished, CompleteAnimationTime)); component.Reset(); component.Play(true, null); } } }
/// <summary> /// 动画Out (注:重载animation 要处理onComplete回调,开通过base.AnimOut(onComplete) /// 或者主动处理 /// </summary> /// <param name="onComplete"></param> public virtual void AnimOut(EventDelegate.Callback onComplete) { try { if (null != onComplete) { onComplete.Invoke(); } } catch (Exception e) { Debug.LogError(gameObject.name + "->AnimOut Error message:" + e.Message); } }
public void AnimStart(bool is_entry, bool is_skip, EventDelegate.Callback end_callback) { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Expected O, but got Unknown nowEntryAnim = is_entry; Transform t = (!nowEntryAnim) ? this.get_transform() : entryAnimCtrl.get_transform(); ResetTween(t, 0); if (is_skip) { SkipTween(t, true, 0); end_callback?.Invoke(); nowEntryAnim = false; } else { PlayTween(t, true, end_callback, false, 0); } }