public FlickNoteView(FlickNote flickNote) : base(flickNote) { leftArrow = Note.transform.Find("LeftArrow").GetComponent <SpriteRenderer>(); rightArrow = Note.transform.Find("RightArrow").GetComponent <SpriteRenderer>(); leftArrow.transform.ChangeLocalPosition(x: -MaxArrowOffset); rightArrow.transform.ChangeLocalPosition(x: MaxArrowOffset); leftArrow.color = leftArrow.color.WithAlpha(0); rightArrow.color = rightArrow.color.WithAlpha(0); }
public ClassicFlickNoteRenderer(FlickNote flickNote) : base(flickNote) { maxArrowOffset = Game.camera.orthographicSize * 0.3f; leftArrow = Note.transform.Find("LeftArrow").GetComponent <SpriteRenderer>(); rightArrow = Note.transform.Find("RightArrow").GetComponent <SpriteRenderer>(); leftArrow.transform.SetLocalX(-maxArrowOffset); rightArrow.transform.SetLocalX(maxArrowOffset); leftArrow.color = leftArrow.color.WithAlpha(0); rightArrow.color = rightArrow.color.WithAlpha(0); }