private void AssignStyle(DanceStyle style)
    {
        var currentStyle = player.DanceStyle;

        if (currentStyle != null && currentStyle.Name == style.Name)
        {
            return;
        }
        spriteRenderer.color = style.PlayerColor;
        movement.MaxSpeed    = style.MaxSpeed;

        if (currentStyle != null && currentStyle.PlayerAnimation != "")
        {
            animator.ResetTrigger(currentStyle.PlayerAnimation);
        }
        animator.SetTrigger(style.PlayerAnimation);
        player.DanceStyle = style;

        movement.doesFlipsAllowed =
            !(style.Name == "Average");
    }
 private void Awake()
 {
     movement   = GetComponent <Movement>();
     DanceStyle = DanceStyle.Slow;
 }