public void OnPointerDown(PointerEventData eventData) { if (ThisOrbType == OrbType.DevilOrb) { DevilAction(); return; } comboCounter.AddCombo(this.gameObject); }
// Update is called once per frame public void OnPointerEnter(PointerEventData eventData) { if (ThisOrbType == OrbType.DevilOrb) { DevilAction(); return; } if (comboCounter.DragObjList.Count.Equals(0)) { return; } if (ThisOrbType == OrbType.SpecialOrb || comboCounter.DragObjList.LastOrDefault().GetComponent <OrbController>().ThisOrbType == OrbType.SpecialOrb) { //リストの中に自分がいたら帰る foreach (var thisObj in comboCounter.DragObjList) { if (thisObj == this.gameObject) { return; } } comboCounter.AddCombo(this.gameObject); return; } if (comboCounter.CheckCombo(this.transform)) { return; } if (comboCounter.DragObjList.Contains(this.gameObject)) { if (comboCounter.DragObjList.Count.Equals(1)) { return; } comboCounter.MinusCombo(); return; } if (comboCounter.DragObjList.FirstOrDefault().GetComponent <OrbController>().ThisOrbType != ThisOrbType) { return; } comboCounter.AddCombo(this.gameObject); }
public void Judge(Judgement judgement) { JudgeController.Judge(judgement); if (judgement == Just || judgement == Early || judgement == Late) { ComboCounter.AddCombo(); ScoreCounter.Judge(judgement); } else { ComboCounter.ResetCombo(); } Result.Judgements[judgement]++; Result.Combo = Mathf.Max(Result.Combo, ComboCounter.Count); }
public void OnPointerDown(PointerEventData eventData) { comboCounter.AddCombo(this.gameObject); }