private void CreatOffsetPreview()
    {
        if (_offsetPreview == null)
        {
            var go = new GameObject("EmbodyOffsetPreview_" + name);
            go.transform.SetParent(controllerPointTransform, false);
            _offsetPreview = go.gameObject.AddComponent <OffsetPreview>();
        }

        _offsetPreview.currentMotionControl = currentMotionControl;
        _offsetPreview.Sync(_highlighted);
    }
Пример #2
0
 private void SyncOffsetPreview()
 {
     if (_offsetPreview == null)
     {
         return;
     }
     _offsetPreview.Sync();
 }