// Token: 0x06008697 RID: 34455 RVA: 0x0034AC84 File Offset: 0x00349084 private void OnLateUpdate() { BlinkCtrl.CalcBlink(); var fbsblinkControl = BlinkCtrl; if (BlinkCtrlEx != null) { fbsblinkControl = BlinkCtrlEx; } float blinkRate; if (fbsblinkControl.GetFixedFlags() == 0) { blinkRate = fbsblinkControl.GetOpenRate(); if (EyeLookController) { var angleHRate = EyeLookController.eyeLookScript.GetAngleHRate(EYE_LR.EYE_L); var angleVRate = EyeLookController.eyeLookScript.GetAngleVRate(); var min = -Mathf.Max(EyeLookDownCorrect, EyeLookSideCorrect); var num = 1f - EyeLookUpCorrect; if (num > EyesCtrl.OpenMax) { num = EyesCtrl.OpenMax; } float num2; if (angleVRate > 0f) { num2 = MathfEx.LerpAccel(0f, EyeLookUpCorrect, angleVRate); } else { num2 = -MathfEx.LerpAccel(0f, EyeLookDownCorrect, -angleVRate); } if (angleHRate > 0f) { num2 -= MathfEx.LerpAccel(0f, EyeLookSideCorrect, angleHRate); } else { num2 -= MathfEx.LerpAccel(0f, EyeLookSideCorrect, -angleHRate); } num2 = Mathf.Clamp(num2, min, EyeLookUpCorrect); num2 *= 1f - (1f - EyesCtrl.OpenMax); EyesCtrl.SetCorrectOpenMax(num + num2); } } else { blinkRate = -1f; } EyebrowCtrl.CalcBlend(blinkRate); EyesCtrl.CalcBlend(blinkRate); MouthCtrl.CalcBlend(voiceValue); }
//public void SetBlinkControlEx(FBSBlinkControl ctrl) //{ // BlinkCtrlEx = ctrl; //} private void LateUpdate() { // BlinkCtrl.CalcBlink(); // FBSBlinkControl fBSBlinkControl = BlinkCtrl; //if (BlinkCtrlEx != null) //{ // fBSBlinkControl = BlinkCtrlEx; //} float num = 0f; //if (fBSBlinkControl.GetFixedFlags() == 0) //{ // num = fBSBlinkControl.GetOpenRate(); // if ((bool)EyeLookController) // { // float angleHRate = EyeLookController.eyeLookScript.GetAngleHRate(EYE_LR.EYE_L); // float angleVRate = EyeLookController.eyeLookScript.GetAngleVRate(); // float min = 0f - Mathf.Max(EyeLookDownCorrect, EyeLookSideCorrect); // float num2 = 1f - EyeLookUpCorrect; // if (num2 > EyesCtrl.OpenMax) // { // num2 = EyesCtrl.OpenMax; // } // float num3 = 0f; // num3 = ((!(angleVRate > 0f)) ? (0f - MathfEx.LerpAccel(0f, EyeLookDownCorrect, 0f - angleVRate)) : MathfEx.LerpAccel(0f, EyeLookUpCorrect, angleVRate)); // num3 = ((!(angleHRate > 0f)) ? (num3 - MathfEx.LerpAccel(0f, EyeLookSideCorrect, 0f - angleHRate)) : (num3 - MathfEx.LerpAccel(0f, EyeLookSideCorrect, angleHRate))); // num3 = Mathf.Clamp(num3, min, EyeLookUpCorrect); // num3 *= 1f - (1f - EyesCtrl.OpenMax); // EyesCtrl.SetCorrectOpenMax(num2 + num3); // } //} //else //{ num = -1f; //} // EyebrowCtrl.CalcBlend(num); EyesCtrl.CalcBlend(EyeOpenRate); MouthCtrl.CalcBlend(voiceValue); }