void Start() { _lastInputValue = 0f; _floatValue = new FloatInterpolator( _responseCurve.Evaluate(_lastInputValue), _interpolator ); }
void Start() { _lastInputValue = MidiMaster.GetKnob(_channel, _knobNumber); _floatValue = new FloatInterpolator( _responseCurve.Evaluate(_lastInputValue), _interpolator ); }
void Start() { _value = new FloatInterpolator(_value1, _interpolator); if (_sendOnStartUp) { _state1Event.Invoke(); } }
void Start() { _value = new FloatInterpolator(0, _interpolator); if (_sendOnStartUp) { _offEvent.Invoke(); } }
void Start() { _floatValue = new FloatInterpolator(EvalResponse(), _interpolator); if (_startAtStart) { Play(); } }
void Start() { _value = new FloatInterpolator(_offValue, _interpolator); if (_sendOnStartUp) { _stateEvent.Invoke(false); _offEvent.Invoke(); } }
public void Disable() { if ((layer != -1 || id != -1) && !(renderCamera == null)) { DeleteRenderTexture(); Object.Destroy(renderCamera); renderCamera = null; Object.Destroy(postEffector); postEffector = null; alpha = null; uiTexture.alpha = 0f; } }
public override void Initialize(BulletData bullet, SkillInfo.SkillParam _skillInfoParam, Vector3 pos, Quaternion rot) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0004: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) base.Initialize(bullet, _skillInfoParam, pos, rot); curve = new FloatInterpolator(); curve.loopType = Interpolator.LOOP.REPETE; curve.Set(bullet.dataCurve.loopTime, 0f, bullet.dataCurve.curveAngle, bullet.dataCurve.curveAnim, 0f, null); curve.Play(); curveTime = new FloatInterpolator(); curveTime.Set(bullet.data.appearTime, 1f, 0f, bullet.dataCurve.timeAnim, 0f, null); curveTime.Play(); curveAxis = bullet.dataCurve.curveAxis; }
public void ChangeValue(float value) { if (_interpolator.enabled) { if (!_initialized) { _outputValue = new FloatInterpolator(value, _interpolator); _initialized = true; } _outputValue.targetValue = value; } else { _valueEvent.Invoke(value); } }
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(); }
public void Start(Vector3 p1, Vector3 p2, Vector3 t1, Vector3 t2, Vector3 u1, Vector3 u2, float field1, float field2, float aspect1, float aspect2, float near1, float near2, float far1, float far2) { _pinterp = new Vec3Interpolator(); _tinterp = new Vec3Interpolator(); _uinterp = new Vec3Interpolator(); _fieldinterp = new FloatInterpolator(); _aspectinterp = new FloatInterpolator(); _nearinterp = new FloatInterpolator(); _farinterp = new FloatInterpolator(); _pinterp.Start(p1, p2, _timeInSeconds); _tinterp.Start(t1, t2, _timeInSeconds); _uinterp.Start(u1, u2, _timeInSeconds); _fieldinterp.Start(field1, field2, _timeInSeconds); _aspectinterp.Start(aspect1, aspect2, _timeInSeconds); _nearinterp.Start(near1, near2, _timeInSeconds); _farinterp.Start(far1, far2, _timeInSeconds); }
public Particle(Texture2D texture, ParticleConfig config) { Config = config; Texture = texture; OriginalColor = config.Color; OriginalScale = config.Scale; OriginalTimeToLive = config.TimeToLive; Alive = true; if (Config.VelocityInterpolate) (_velocity = new Vector2Interpolator()).Start(Config.Velocity, Config.TargetVelocity, Config.TimeToLive); if (Config.ScaleInterpolate) (_scale = new FloatInterpolator()).Start(Config.Scale, Config.TargetScale, Config.TimeToLive, true); if (Config.RotationVelocityInterpolate) (_rotation = new FloatInterpolator()).Start(Config.RotationVelocity, Config.TargetRotationVelocity, Config.TimeToLive); if (Config.ColorInterpolate) (_color = new ColorInterpolator()).Start(Config.Color, Config.TargetColor, Config.TimeToLive); if (OnParticleCreated != null) OnParticleCreated.Invoke(this, GameEventArgs.Empty); }
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()); } } }
public override void Initialize() { _viewport = _game.GraphicsDevice.Viewport; ScreenCenter = new Vector2(_viewport.Width / 2f, _viewport.Height / 2f); Zoom = 1f; MoveSpeed = 1.25f; _magnitudeInterpolator = new FloatInterpolator(); _postShakeRotationInterpolator = new FloatInterpolator(); OnFinishedShaking += OnCameraFinishedShaking; base.Initialize(); }
void Awake() { _value = new FloatInterpolator(0, _interpolator); _eventQueue = new Queue <EventRecord>(); }
void Start() { _floatValue = new FloatInterpolator(0, _interpolator); }
void Awake() { _floatValue = new FloatInterpolator(0, _interpolator); }
void Start() { _floatValueX = new FloatInterpolator(0, _interpolator); _floatValueY = new FloatInterpolator(0, _interpolator); _floatValueZ = new FloatInterpolator(0, _interpolator); }
void Start() { _floatValue = new FloatInterpolator(EvalResponse(), _interpolator); }
public void Start(Vector3 p1, Vector3 p2, Vector3 t1, Vector3 t2, Vector3 u1, Vector3 u2, float field1, float field2, float aspect1, float aspect2, float near1, float near2, float far1, float far2) { _pinterp = new Vec3Interpolator(); _tinterp = new Vec3Interpolator(); _uinterp = new Vec3Interpolator(); _fieldinterp = new FloatInterpolator(); _aspectinterp = new FloatInterpolator(); _nearinterp = new FloatInterpolator(); _farinterp = new FloatInterpolator(); _pinterp.Start(p1,p2, _timeInSeconds); _tinterp.Start(t1,t2, _timeInSeconds); _uinterp.Start(u1, u2, _timeInSeconds); _fieldinterp.Start(field1, field2, _timeInSeconds); _aspectinterp.Start(aspect1, aspect2, _timeInSeconds); _nearinterp.Start(near1, near2, _timeInSeconds); _farinterp.Start(far1, far2, _timeInSeconds); }
void Start() { _outputValue = new FloatInterpolator(_floatValue, _interpolator); }
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(); }
public void Enable(float fadeTime = 0.25f) { //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: 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) Init(); if ((layer != -1 || id != -1) && !(renderCamera != null)) { renderCamera = renderTransform.get_gameObject().AddComponent <Camera>(); renderCamera.set_depth(50f); renderCamera.set_clearFlags(2); renderCamera.set_backgroundColor(new Color(0f, 0f, 0f, 0f)); renderCamera.set_renderingPath(1); renderCamera.set_cullingMask(1 << renderLayer); if (orthographicSize == 0f) { if (fov <= 0f) { fov = 10f; } renderCamera.set_fieldOfView(fov); } else { renderCamera.set_orthographic(true); renderCamera.set_orthographicSize(orthographicSize); } if (nearClipPlane == -1f) { nearClipPlane = 0.01f; } renderCamera.set_nearClipPlane(nearClipPlane); renderCamera.set_farClipPlane(farClipPlane); if (postEffectFilter != null) { postEffector = renderTransform.get_gameObject().AddComponent <PostEffector>(); postEffector.SetFilter(postEffectFilter); } if (uiTexture != null) { texW = uiTexture.width; texH = uiTexture.height; if (ToRealSize(ref texW, ref texH)) { filterMode = 1; } else { filterMode = 0; } } else { texW = (texH = Mathf.Min(Screen.get_width(), Screen.get_height())); } CreateRenderTexture(); uiTexture.alpha = 0f; alpha = new FloatInterpolator(); alpha.Set(fadeTime, 0f, 1f, Curves.easeLinear, 0f, null); alpha.Play(); Nexus6CrashWorkaround.Apply(renderCamera); } }
void Start() { _xValue = new FloatInterpolator(0, _interpolator); _yValue = new FloatInterpolator(0, _interpolator); }
protected override void Start() { base.Start(); _axisValue = new FloatInterpolator(0, _interpolator); }