コード例 #1
0
 internal Statist DrivingDecreases(FloatParameterist parameterist, float positiveValueToDecreaseBy)
 {
     CreateDriverBehaviorIfNotExists();
     _driver.parameters.Add(new VRC_AvatarParameterDriver.Parameter
     {
         type = VRC_AvatarParameterDriver.ChangeType.Add,
         name = parameterist.Name, value = -positiveValueToDecreaseBy
     });
     return(this);
 }
コード例 #2
0
 internal Statist Drives(FloatParameterist parameterist, float value)
 {
     CreateDriverBehaviorIfNotExists();
     _driver.parameters.Add(new VRC_AvatarParameterDriver.Parameter
     {
         type = VRC_AvatarParameterDriver.ChangeType.Set,
         name = parameterist.Name, value = value
     });
     return(this);
 }
コード例 #3
0
 internal BuildingFloatTransitionist(TransitionContinuationist transitionist, AnimatorStateTransition transition, FloatParameterist parameterist)
 {
     _transitionist = transitionist;
     _transition    = transition;
     _parameterist  = parameterist;
 }
コード例 #4
0
 internal BuildingFloatTransitionist And(FloatParameterist parameter)
 {
     return(new BuildingFloatTransitionist(this, _transition, parameter));
 }
コード例 #5
0
 internal BuildingFloatTransitionist When(FloatParameterist parameter)
 {
     return(new BuildingFloatTransitionist(new TransitionContinuationist(_transition), _transition, parameter));
 }