public void PlayRadialBlur(float strength, Transform t, float duration, Vector3 offset, float beginSmooth, float endSmooth) { GameObject go = GameObjectPool.GetPool(GameObjectPool.enPool.Fx).GetImmediately("fx_camera_blur_internal", false); CameraFx cameraFx = go.GetComponent <CameraFx>(); CameraAni cameraAni = cameraFx.m_anis[0]; cameraAni.m_endFloat = strength; cameraAni.m_beginDuration = beginSmooth; cameraAni.m_endDuration = endSmooth; RadialBlur blur = go.GetComponent <RadialBlur>(); blur.target = t; blur.offset = offset; go.SetActive(true); FxDestroy.Add(go, duration); }