Example #1
0
        public HoldNoteView(GameNote note, NoteViewRef VRef) :
            base(note, VRef)
        {
            lineHeight = Mathf.CeilToInt(Note.Info.Duration) * LINE_HEIGHT_FACTOR + LINE_BASIC_HEIGHT - LINE_OFFSET;
            lineHeight = Mathf.Clamp(lineHeight, 1, MAX_LINE_HEIGH);
            //set position
            Vector3 linePos = VRef.lineRenderer.transform.localPosition;
            Vector3 lineRot = VRef.lineRenderer.transform.rotation.eulerAngles;

            //if note on the top part of screen
            if (note.Info.pos.y > NoR2252Application.CurrentSheet.screenSize.y / 2f)
            {
                linePos.y = -Mathf.Abs(linePos.y);
                lineRot.z = 180f;
            }
            //if note on the bottom part of screen
            else
            {
                linePos.y = Mathf.Abs(linePos.y);
                lineRot.z = 0f;
            }
            //set the position
            VRef.bgLineRenderer.transform.localPosition = linePos;
            VRef.bgLineRenderer.transform.rotation      = Quaternion.Euler(lineRot);
            VRef.lineRenderer.transform.localPosition   = linePos;
            VRef.lineRenderer.transform.rotation        = Quaternion.Euler(lineRot);
        }
Example #2
0
 public NoteView(GameNote note, NoteViewRef VRef)
 {
     this.Note = note;
     initScale = new Vector3(NoR2252Application.Size, NoR2252Application.Size, 1f);
     this.VRef = VRef;
     this.VRef.animator.runtimeAnimatorController = this.VRef.animController;
 }
Example #3
0
 public TapNoteView(GameNote note, NoteViewRef VRef) :
     base(note, VRef)
 {
 }
 public SlideHeadNoteView(GameNote note, NoteViewRef VRef) :
     base(note, VRef)
 {
 }
Example #5
0
 public FlickNoteView(GameNote note, NoteViewRef Ref) :
     base(note, Ref)
 {
 }