Example #1
0
 protected override void AddBeatFunc(NoteInputPresenter inputPresenter)
 {
     inputPresenter.NoteInputObservables[block]
     .Subscribe(_ => JudgePlessing())
     .AddTo(this);
     inputPresenter.NoteInputUpObservables[block]
     .Subscribe(_ => JudgeUpButton())
     .AddTo(this);
 }
 public void Init(int block, float speed, NoteInputPresenter inputPresenter)
 {
     judgeTimingData = Resources.Load <JudgeTimingModel>("JudgeTimingData");
     time            = 0f;
     this.block      = block;
     perfectTiming   = DetailConstants.PerfectTimingWhenSpeed1 / speed;
     GetComponent <Mover>().speed = speed;
     if (isAutoPlay)
     {
         source = transform.parent.gameObject.GetComponent <AudioSource>();
     }
     AddBeatFunc(inputPresenter);
     this.inputPresenter = inputPresenter;
 }
 protected virtual void AddBeatFunc(NoteInputPresenter inputPresenter)
 {
     inputPresenter.AddNote(block, gameObject);
 }
Example #4
0
 public void LongNoteInit(int block, float speed, NoteInputPresenter inputPresenter, ISEPresenter longNoteSE)
 {
     Init(block, speed, inputPresenter);
     this.beatSE  = longNoteSE;
     isSingleNote = false;
 }