public void Subscribe(AnimatorStateBroadcasterBehaviour sender)
        {
            switch (Type)
            {
            case AnimatorControllerParameterType.Trigger:
                sender.TriggerSet -= TriggerSet;
                sender.TriggerSet += TriggerSet;
                break;

            case AnimatorControllerParameterType.Int:
                sender.IntSet -= IntChanged;
                sender.IntSet += IntChanged;
                break;

            case AnimatorControllerParameterType.Float:
                sender.FloatSet -= FloatChanged;
                sender.FloatSet += FloatChanged;
                break;

            case AnimatorControllerParameterType.Bool:
                sender.BoolSet -= BoolChanged;
                sender.BoolSet += BoolChanged;
                break;
            }
        }