private void Update() { if (nextAnimState == null) { if (currentAnimState != null) { currentAnimState.set_enabled(true); currentAnimState.set_weight(1f); } } else { changeInterp.Update(); currentAnimState.set_weight(changeInterp.Get()); nextAnimState.set_weight(1f - currentAnimState.get_weight()); if (!changeInterp.IsPlaying()) { currentAnimState.set_enabled(false); currentAnimState.set_weight(0f); currentAnimState = nextAnimState; nextAnimState = null; _rate = currentAnimState.get_time() / currentAnimState.get_length(); } } }
protected void Update() { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) if (animStep == 0) { if (anim.IsPlaying()) { animTime += Time.get_deltaTime(); _transform.set_localRotation(Quaternion.AngleAxis(animTime * parameter.rotationSpeed, Vector3.get_up())); float num = animTime / parameter.popAnimTime; if (num > 1f) { num = 1f; } Vector3 position = Vector3.Lerp(dropPos, targetPos, num); position.y = anim.Update() + parameter.defHeight; if (anim.IsPlaying()) { _transform.set_position(position); } } else { this.get_gameObject().SetActive(false); animStep++; } } }
private IEnumerator DoLoad() { if (onLoadStart != null) { onLoadStart(); } LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_image = load_queue.Load(RESOURCE_CATEGORY.QUEST_LOCATION_IMAGE, ResourceName.GetQuestLocationImage(id), false); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } image = ResourceUtility.Realizes(lo_image.loadedObject, MonoBehaviourSingleton <StageManager> .I._transform, 5); QuestLocationImage c = image.GetComponent <QuestLocationImage>(); if (!(c == null)) { int w = uiTexture.width; int h = uiTexture.height; UIRenderTexture.ToRealSize(ref w, ref h); c.Init(w, h); Camera cam = image.GetComponent <Camera>(); if (!(cam == null)) { RenderTexture tex = cam.get_targetTexture(); if (!(tex == null)) { uiTexture.mainTexture = tex; FloatInterpolator anim = new FloatInterpolator(); anim.Set(0.25f, 0f, 1f, Curves.easeLinear, 0f, null); anim.Play(); while (anim.IsPlaying()) { yield return((object)null); uiTexture.alpha = anim.Update(); } if (onLoadComplete != null) { onLoadComplete(); } coroutine = null; } } } }
private IEnumerator DoFadeOutDisable(float fadeTime) { uiTexture.alpha = 1f; alpha = new FloatInterpolator(); alpha.Set(fadeTime, 1f, 0f, Curves.easeLinear, 0f, null); alpha.Play(); while (alpha.IsPlaying()) { yield return((object)null); if (alpha == null) { break; } } Disable(); }
private void LateUpdate() { //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) if (layer != -1 || id != -1) { if (alpha != null) { uiTexture.alpha = alpha.Update(); if (!alpha.IsPlaying()) { alpha = null; } } if (linkMainCamera && renderCamera != null) { modelTransform.set_parent(null); renderTransform.set_position(MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.get_position()); renderTransform.set_rotation(MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.get_rotation()); modelTransform.set_parent(renderTransform); renderCamera.set_fieldOfView(MonoBehaviourSingleton <AppMain> .I.mainCamera.get_fieldOfView()); } } }
private void LateUpdate() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_0247: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invalid IL or missing references) //IL_0252: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02be: Unknown result type (might be due to invalid IL or missing references) //IL_02ef: Unknown result type (might be due to invalid IL or missing references) if (targetObject == null) { this.get_gameObject().SetActive(false); } else { if (animEventProcessor != null) { animEventProcessor.Update(); } switch (animationStep) { case AnimationStep.MOVE_TO_TARGET_POS: { animationTimer += Time.get_deltaTime(); Vector3 position2 = Vector3.Lerp(dropPos, targetPos, animationTimer / MOVE_TO_TARGET_TIME); float x = position2.x; Vector3 position3 = _transform.get_position(); position2._002Ector(x, position3.y, position2.z); _transform.set_position(position2); if (animationTimer >= MOVE_TO_TARGET_TIME) { animationStep = AnimationStep.DROP_TO_GROUND; } break; } case AnimationStep.DROP_TO_GROUND: { AnimatorStateInfo currentAnimatorStateInfo2 = animator.GetCurrentAnimatorStateInfo(0); if (currentAnimatorStateInfo2.get_fullPathHash() == endAnimHash) { targetPoint = this.GetComponent <TargetPoint>(); animationStep = AnimationStep.NONE; } if (isRare) { SoundManager.PlayOneShotUISE(10000061); } else { SoundManager.PlayOneShotUISE(10000062); } break; } case AnimationStep.OPEN: { AnimatorStateInfo currentAnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(0); if (currentAnimatorStateInfo.get_fullPathHash() == openAnimHash && currentAnimatorStateInfo.get_normalizedTime() > 0.99f) { animationStep = AnimationStep.NONE; if (effect != null) { EffectManager.ReleaseEffect(effect.get_gameObject(), true, false); } this.get_gameObject().SetActive(false); } break; } case AnimationStep.GET: if (distanceAnim.IsPlaying()) { moveTime += Time.get_deltaTime(); Bounds bounds = targetObject._collider.get_bounds(); Vector3 center = bounds.get_center(); Vector3 val = _transform.get_position() - center; float magnitude = val.get_magnitude(); if (distance < magnitude) { distance = magnitude; } val = val.get_normalized() * distance * (1f - distanceAnim.Update()); Vector3 val2 = Quaternion.AngleAxis(moveTime * speedAnim.Update(), Vector3.get_up()) * val; Vector3 position = center + val2; _transform.set_position(position); Vector3 localScale = Vector3.get_one() * scaleAnim.Update(); if (distanceAnim.IsPlaying()) { _transform.set_localScale(localScale); } } else { Transform val3 = EffectManager.GetEffect("ef_btl_mpdrop_01", null); val3.set_position(_transform.get_position()); rymFX component = val3.GetComponent <rymFX>(); if (component != null) { component.AutoDelete = true; component.LoopEnd = true; } this.get_gameObject().SetActive(false); } break; } } }
private IEnumerator DoGlowRegion(Vector3 from, Vector3 to) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) yield return((object)new WaitForSeconds(0.5f)); Vector3Interpolator ip = new Vector3Interpolator(); Vector3 zoomDownTo = to + new Vector3(0f, 0f, -3f); ip.Set(1f, from, zoomDownTo, null, default(Vector3), null); ip.Play(); while (ip.IsPlaying()) { ip.Update(); worldMapCamera.targetPos = ip.Get(); yield return((object)null); } Transform toRegion = regionAreas[toRegionID]; toRegion.get_gameObject().SetActive(true); Renderer toRegionRenderer = toRegion.GetComponent <Renderer>(); toRegionRenderer.get_material().SetFloat("_Alpha", 0f); Renderer topRenderer = glowRegionTop.GetComponent <Renderer>(); topRenderer.get_material().SetFloat("_Alpha", 0f); topRenderer.get_material().SetFloat("_AddColor", 1f); topRenderer.get_material().SetFloat("_BlendRate", 1f); topRenderer.set_sortingOrder(2); glowRegionTop.get_gameObject().SetActive(true); DelayExecute(1f, delegate { //IL_000b: Unknown result type (might be due to invalid IL or missing references) ((_003CDoGlowRegion_003Ec__Iterator16E) /*Error near IL_0211: stateMachine*/)._003C_003Ef__this.mapGlowEffectA.get_gameObject().SetActive(true); Renderer component = ((_003CDoGlowRegion_003Ec__Iterator16E) /*Error near IL_0211: stateMachine*/)._003C_003Ef__this.mapGlowEffectA.GetComponent <Renderer>(); component.set_sortingOrder(1); }); yield return((object)new WaitForSeconds(1f)); ip.Set(1f, zoomDownTo, to, null, default(Vector3), null); ip.Play(); while (ip.IsPlaying()) { ip.Update(); worldMapCamera.targetPos = ip.Get(); yield return((object)null); } FloatInterpolator fip = new FloatInterpolator(); fip.Set(2f, 0f, 1.5f, null, 0f, null); fip.Play(); SoundManager.PlayOneShotUISE(SE_ID_SMOKE); while (fip.IsPlaying()) { fip.Update(); topRenderer.get_material().SetFloat("_Alpha", fip.Get()); yield return((object)null); } toRegionRenderer.get_material().SetFloat("_Alpha", 1f); mapGlowEffectParticleA.Stop(); mapGlowEffectB.get_gameObject().SetActive(true); yield return((object)new WaitForSeconds(0f)); fip.Set(0.2f, 1f, 0f, null, 0f, null); fip.Play(); while (fip.IsPlaying()) { fip.Update(); topRenderer.get_material().SetFloat("_Alpha", fip.Get()); yield return((object)null); } yield return((object)new WaitForSeconds(0f)); targetRegionIcon.get_gameObject().SetActive(true); TweenScale tweenScale = targetRegionIcon.GetComponent <TweenScale>(); tweenScale.PlayForward(); yield return((object)new WaitForSeconds(1f)); mapGlowEffectParticleB.Stop(); bool isTweenEnd = false; UITweenCtrl tweenCtrl = telop.GetComponent <UITweenCtrl>(); tweenCtrl.Reset(); tweenCtrl.Play(true, delegate { ((_003CDoGlowRegion_003Ec__Iterator16E) /*Error near IL_04df: stateMachine*/)._003CisTweenEnd_003E__7 = true; }); SoundManager.PlayOneShotUISE(SE_ID_LOGO); while (!isTweenEnd) { yield return((object)null); } yield return((object)new WaitForSeconds(0f)); Vector3 scaleBegin = playerMarker.get_localScale(); Vector3 scaleEnd = new Vector3(0f, 0f, 0f); ip.Set(0.5f, scaleBegin, scaleEnd, null, default(Vector3), null); ip.Play(); while (ip.IsPlaying()) { ip.Update(); playerMarker.set_localScale(ip.Get()); yield return((object)null); } RegionTable.Data targetData = openedRegionInfo[toRegionID].data; if (targetData != null) { playerMarker.set_localPosition(targetData.markerPos); } yield return((object)new WaitForSeconds(0.1f)); ip.Set(0.5f, scaleEnd, scaleBegin, null, default(Vector3), null); ip.Play(); while (ip.IsPlaying()) { ip.Update(); playerMarker.set_localScale(ip.Get()); yield return((object)null); } yield return((object)new WaitForSeconds(0.4f)); OnQuery_EXIT(); }
private void FixedUpdate() { //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) if (!isDelete && Object.op_Implicit(targetPortal)) { switch (animStep) { case 0: if (anim.IsPlaying()) { Vector3 position2 = _transform.get_position(); position2.y = anim.Update(); if (anim.IsPlaying()) { _transform.set_position(position2); } } else { animStep++; anim.Set(parameter.getSpeedAnimTime, 0f, parameter.getSpeed, parameter.getSpeedAnim, 0f, null); anim.Play(); anim.Update(0f); Vector3 position3 = targetPortal._transform.get_position(); position3.y += parameter.targetHeight; Vector3 val2 = position3 - _transform.get_position(); _rigidbody.set_velocity(val2.get_normalized() * anim.Get()); SoundManager.PlayOneShotUISE(40000070); } break; case 1: { Vector3 position = targetPortal._transform.get_position(); position.y += parameter.targetHeight; Vector3 val = position - _transform.get_position(); float num = anim.Update(); if (num * Time.get_fixedDeltaTime() >= val.get_magnitude()) { OnHitTarget(); } else { float num2 = Vector3.Dot(val, _rigidbody.get_velocity()); if (num2 < 0f) { OnHitTarget(); } else { _rigidbody.set_velocity(val.get_normalized() * num); } } break; } } } }