public override void DoUpdate(LFloat deltaTime) { if (InputAgent.isSpeedUp) { spdUpTimer = new LFloat(3); } spdUpTimer -= deltaTime; speed = spdUpTimer > 0 ? fastSpd : normalSpd; if (spdUpTimer > 0) { PostEffectManager.StartEffect(EPostEffectType.RadialBlur, 0.1f, 0.2f, 0.3f , new PostEffectRadialBlur.ParamsInfo(1, 1.5f)); } var skillId = InputAgent.skillId; if (skillId >= 0 && !isFire) { if (skillId < this.allSkills.Count) { allSkills[skillId].Fire(); } } base.DoUpdate(deltaTime); if (!isFire) { eventHandler.Animating(CMover.hasReachTarget); } animator.DoLateUpdate(deltaTime); }
private void Awake() { if (instance == null) { instance = this; } }
// Token: 0x06004D64 RID: 19812 RVA: 0x0019F300 File Offset: 0x0019D700 private void SetupCameraAttributes() { VRC_SceneDescriptor instance = VRC_SceneDescriptor.Instance; if (instance.ReferenceCamera != null) { Camera component = instance.ReferenceCamera.GetComponent <Camera>(); if (component != null) { this.cam.nearClipPlane = Mathf.Clamp(component.nearClipPlane, 0.01f, 0.05f); this.cam.farClipPlane = component.farClipPlane; this.cam.clearFlags = component.clearFlags; this.cam.backgroundColor = component.backgroundColor; this.cam.allowHDR = component.allowHDR; } PostEffectManager.RemovePostEffects(this.cam.gameObject); PostEffectManager.InstallPostEffects(this.cam.gameObject, instance.ReferenceCamera); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); owner = target as CAnimation; if (GUILayout.Button("GenList")) { isGenAnimInfos = true; OnBeginGen(); EditorApplication.update += UpdateFunc; } if (GUILayout.Button("SetTimer")) { owner.SetTime(owner.debugTimer); } if (GUILayout.Button("PE_RadialBlur")) { PostEffectManager.StartEffect(EPostEffectType.RadialBlur, owner.shaderDuration, owner.shaderFadeInTime, owner.shaderFadeOutTime , new PostEffectRadialBlur.ParamsInfo(owner.shadersSampleDist, owner.shadersSampleStrength)); } }
// Use this for initialization void Start() { Instance = this; }
void OnDestroy() { if(Instance == this) Instance = null; }
void InitialPostEffect() { mPostEffect = GetComponent<PostEffectManager>(); }
private void Awake() { Instance = this; }
// Token: 0x0600544B RID: 21579 RVA: 0x001D1CDC File Offset: 0x001D00DC public static void InstallPostEffects(GameObject dst, GameObject src) { PostEffectManager.DuplicateComponent <PostProcessingBehaviour>(dst, src); PostEffectManager.DuplicateComponent <VolumetricFog>(dst, src); }