Exemple #1
0
    public void SetVisibility(NoteAppearance.Visibility v)
    {
        durationTrail.gameObject.SetActive(
            v != NoteAppearance.Visibility.Hidden);
        if (ongoingTrail != null)
        {
            ongoingTrail.gameObject.SetActive(
                v != NoteAppearance.Visibility.Hidden);
        }
        if (durationTrailRightShadow != null)
        {
            durationTrailRightShadow.SetActive(
                v != NoteAppearance.Visibility.Hidden);
        }

        Color color = (v == NoteAppearance.Visibility.Transparent) ?
                      new Color(1f, 1f, 1f, 0.6f) :
                      Color.white;

        durationTrail.GetComponent <Image>().color = color;
        if (ongoingTrail != null)
        {
            ongoingTrail.GetComponent <Image>().color = color;
        }
    }
Exemple #2
0
 public void SetExtensionVisibility(
     NoteAppearance.Visibility v)
 {
     extension.gameObject.SetActive(
         v != NoteAppearance.Visibility.Hidden);
 }
Exemple #3
0
 public void SetDurationTrailVisibility(
     NoteAppearance.Visibility v)
 {
     GetComponent <HoldTrailManager>().SetVisibility(v);
 }