public void UpdateAssetsOverFrames(int frames) { mFaceTexture.ApplyChangesOverFrames(frames, delegate() { // The face renderer is set to false during construction so when // we set the face and finish applying the face to the face we do this. mFaceRenderer.enabled = true; }); }
private void UpdateAssetsOverFrames(int frames) { mUpdatingBodyTask = BodyTexture.ApplyChangesOverFrames(frames, ApplyMeshChanges); mUpdatingBodyTask.AddOnExitAction(delegate() { mFaceRenderer.enabled = true; mAssetsBeingUpdatedOverFrames.Clear(); if (mFinishedUpdatingCallback != null) { mFinishedUpdatingCallback(); mFinishedUpdatingCallback = null; } }); mUpdatingFaceTask = mFaceTexture.ApplyChangesOverFrames(frames, delegate() { }); }