private unsafe void LateUpdate() { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Expected O, but got Unknown if (loaded) { try { if (maid != null && maid.body0.isLoadedBody) { if (faceMorph == null) { faceMorph = ((maid.body0).Face).morph; } if (enableFaceAnime) { UpdateFace(); } } else { faceMorph = null; } } catch (Exception value) { Console.WriteLine(value); } } }
private IEnumerator LoadDicDelayedCo() { while (true) { while (maid.IsBusy) { yield return((object)new WaitForEndOfFrame()); } faceMorph = ((maid.body0).Face).morph; if (faceMorph != null) { try { InitDic(); InitFaceBlendDic(); InitDummyGo(); loaded = true; yield break; } catch (Exception value) { Console.WriteLine(value); } } } }
public override void PreviewTimeInternal(MovieCurveClip clip, float sampleTime) { if (this.maid == null || !this.maid.Visible) { Debug.LogWarning(Translation.GetText("Warnings", "maidNotFound")); this.enabled = false; return; } if (this.targetMorph == null) { this.targetMorph = maid.body0.Face.morph; } maid.boMabataki = false; maid.boFaceAnime = false; for (int i = 0; i < clip.curves.Count; i++) { String key = faceVals[i, 0]; if (targetMorph.Contains(key)) { // if (bd.key == "nosefook") // maid.boNoseFook = bd.val > 0f ? true : false; // else if (bd.key == "hitomih") // morph.BlendValues[(int)morph.hash[bd.key]] = bd.val * 3; // else targetMorph.BlendValues[(int)targetMorph.hash[key]] = clip.curves[i].Evaluate(sampleTime); } } targetMorph.FixBlendValues_Face(); }
private void Update() { if (!Enum.IsDefined(typeof(TargetLevel), level)) { return; } Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0); if (maid != null && maid.body0.Face.morph != null) { foreach (ShapeKeyNode shapeKeyNode in xmlManager.shapeKeyNodeList) { int h; bool c; float f = maid.body0.Face.morph.BlendValues[(int)maid.body0.Face.morph.hash[shapeKeyNode.baseTags]]; for (int j = 0; j < maid.body0.goSlot.Count; j++) { TMorph morph = maid.body0.goSlot[j].morph; if (morph != null) { c = false; if (morph.Contains(shapeKeyNode.propTag)) { h = (int)maid.body0.goSlot[j].morph.hash[shapeKeyNode.propTag]; maid.body0.goSlot[j].morph.BlendValues[h] = f * shapeKeyNode.propRatio; c = true; } if (c) { maid.body0.goSlot[j].morph.FixBlendValues(); } } } } } }
//"uru-uru","ウルウル", public MovieMaidFaceTrack(Maid maid) : base() { this.maid = maid; this.targetMorph = maid.body0.Face.morph; this.curveIdxToFaceValIdx = new List <int>(); }