public void Initialize( IVRMLoadable vrmLoadable, ExternalTrackerDataSource exTracker, BlendShapeInitializer initializer, WordToMotionBlendShape wtmBlendShape ) { _exTracker = exTracker; _initializer = initializer; _wtmBlendShape = wtmBlendShape; vrmLoadable.VrmLoaded += info => { _blendShape = info.blendShape; _hasModel = true; }; vrmLoadable.VrmDisposing += () => { _hasModel = false; _blendShape = null; }; }
private void Start() { _initializer = FindObjectOfType <BlendShapeInitializer>(); }