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; } }
public void SetExtensionVisibility( NoteAppearance.Visibility v) { extension.gameObject.SetActive( v != NoteAppearance.Visibility.Hidden); }
public void SetDurationTrailVisibility( NoteAppearance.Visibility v) { GetComponent <HoldTrailManager>().SetVisibility(v); }