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(); } } }
public void Drop(PortalObject portal_object, Coop_Model_EnemyDefeat model) { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) targetPortal = portal_object; defeatModel = model; this.get_gameObject().SetActive(true); parameter = MonoBehaviourSingleton <InGameSettingsManager> .I.portal.pointEffect; Vector3 position = default(Vector3); position._002Ector((float)model.x, 0f, (float)model.z); _rigidbody.set_useGravity(false); _transform.set_position(position); anim.Set(parameter.popHeightAnimTime, 0f, parameter.popHeight, parameter.popHeightAnim, 0f, null); anim.Play(); anim.Update(0f); position.y = anim.Get(); _transform.set_position(position); animStep = 0; }
protected void Drop(int _rarity, Vector3 pos) { //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: 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) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: 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_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) rarity = _rarity; animStep = 0; animTime = 0f; isRight = true; anim.Set(parameter.popAnimTime, 0f, parameter.popHeight, parameter.popAnim, 0f, null); anim.Play(); anim.Update(0f); pos.y = anim.Get() + parameter.defHeight; _transform.set_position(pos); Vector3 val = MonoBehaviourSingleton <InGameCameraManager> .I.cameraTransform.get_right(); val.y = 0f; val.Normalize(); if (Random.Range(0, 10) > 5) { val = Quaternion.AngleAxis(180f, Vector3.get_up()) * val; isRight = false; } val *= parameter.popSpeed; targetPos = pos + val; dropPos = pos; }
public override void Update() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0027: 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_0059: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) base.Update(); if (baseRotation == Quaternion.get_identity()) { baseRotation = base._transform.get_rotation(); } curve.Update(Time.get_deltaTime() * curveTime.Update()); Quaternion val = Quaternion.AngleAxis(curve.Get(), curveAxis); base._transform.set_rotation(baseRotation * val); Vector3 forward = Vector3.get_forward(); forward = base._transform.get_rotation() * forward; forward *= base.speed; base._rigidbody.set_velocity(forward); }
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(); }