Exemple #1
0
 public void Copy(SNoteData data)
 {
     x        = data.x;
     y        = data.y;
     beatTime = data.beatTime;
     noteType = data.noteType;
 }
        public void Init(SNote newNote, SNoteData newData)
        {
            note = newNote;
            data = newData;


            //Events related to how the notes look go here:
            //data.NoteTypeChangeEvent += test;
            data.NoteTypeChangeEvent += OnNoteTypeChanged;
        }
Exemple #3
0
        //TODO: add timeline behavior soon
        public SNote(SNoteData newNoteData, SNoteBehavior newGridNote)
        {
            gridNote = newGridNote;

            data = newNoteData;

            //Events relating to the general existance and position of notes go here, other events go in the SNoteBehaviors
            data.PositionChangeEvent += OnGridPositionChanged;

            gridNote.Init(this, data);
        }