Example #1
0
    public AnimParameterEvent Reverse()
    {
        AnimParameterEvent e = new AnimParameterEvent();

        e.parameter_name = parameter_name;
        e.type           = type;
        e.float_value    = -float_value;
        e.bool_value     = !bool_value;
        return(e);
    }
Example #2
0
 public void ProccessAnimParameterEvent(AnimParameterEvent ape)
 {
     if (ape.type == AnimParameterEvent.Type.Bool)
     {
         anim.SetBool(ape.parameter_name, ape.bool_value);
     }
     else if (ape.type == AnimParameterEvent.Type.Float)
     {
         anim.SetFloat(ape.parameter_name, ape.float_value);
     }
     else if (ape.type == AnimParameterEvent.Type.Trigger)
     {
         anim.SetTrigger(ape.parameter_name);
     }
 }