public void Initialize(RecordConductor conductor, NoteRecorder recorder, Transform startPoint, Transform endPoint)
 {
     this.conductor = conductor;
     this.recorder  = recorder;
     this.startPos  = startPoint;
     this.endPos    = endPoint;
 }
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Пример #3
0
    public void Initialize(RecordConductor conductor, NoteRecorder recorder, Transform startPoint, Transform endPoint, float beat)
    {
        this.conductor = conductor;
        this.recorder  = recorder;
        this.startPos  = startPoint;
        this.endPos    = endPoint;
        this.beat      = beat;

        // Set to initial position.
        transform.position = startPoint.position;
        moving             = true;
    }