Example #1
0
 public AnimatorComponent(SerializationInfo info, StreamingContext context)
 {
     _animator = info.GetValue(nameof(_animator), _animator);
 }
Example #2
0
 public AnimatorComponent(IAnimator animator)
 {
     _animator = new CachedAnimator(animator);
 }