public override void Reset() {
     base.Reset();
     rotationParam = ParamSelector.Rotation("rotation", (int) Providers.Target);
     forwardParam = ParamSelector.Direction("forward", (int) Providers.Target, Vector3.forward);
     upParam = ParamSelector.Direction("up", (int) Providers.Target, Vector3.up);
     lookAtPositionParam = ParamSelector.Position("position", (int) Providers.Target);
     offsetParam = new ParamSelector(new Param(ParamType.Rotation, "offset"), (int) Providers.Follower);
 }
 public override void Reset()
 {
     base.Reset();
     rotationParam       = ParamSelector.Rotation(provider: (int)Providers.Leaf);
     forwardParam        = ParamSelector.Direction(defaultValue: Vector3.forward, provider: (int)Providers.Leaf);
     upParam             = ParamSelector.Direction(defaultValue: Vector3.up, provider: (int)Providers.Leaf);
     lookAtPositionParam = ParamSelector.Position(provider: (int)Providers.Root);
     offsetParam         = ParamSelector.Rotation("offset", (int)Providers.Leaf);
 }
Пример #3
0
 public void Reset()
 {
     lookAtPositionParam = ParamSelector.Position();
     forwardParam        = ParamSelector.Direction("forward", defaultValue: Vector3.forward);
     upParam             = ParamSelector.Direction("up", defaultValue: Vector3.up);
     rotationParam       = ParamSelector.Rotation();
     offsetParam         = ParamSelector.Rotation("offset");
     tweenOptions.Reset();
 }
Пример #4
0
 public override void Reset()
 {
     base.Reset();
     rotationParam = ParamSelector.Rotation(provider: (int)Providers.PreviousLink);
     forwardParam  = ParamSelector.Direction(name: "forward", provider: (int)Providers.PreviousLink,
                                             defaultValue: Vector3.forward);
     upParam = ParamSelector.Direction(name: "up", provider: (int)Providers.PreviousLink,
                                       defaultValue: Vector3.up);
     lookAtPositionParam = ParamSelector.Position(provider: (int)Providers.PreviousLink);
     offsetParam         = new ParamSelector(new Param(ParamType.Rotation, "offset"), (int)Providers.Link);
 }