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; } }
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; }