void OnPickUp(Speedbox.bl_GlobalEvents.OnPoint e) { if (time >= Time.time) { Combo++; } else { Combo = 0; } time = Time.time + TimeToCombo; if (Combo > 1) { CancelInvoke(); ComboText.text = string.Format("COMBO x{0}", Combo); if (Combo == 2) { Anim.SetBool("show", true); } else { Anim.SetBool("show", true); Anim.Play("Pum", 0, 0); } Invoke("DisableCombo", TimeToHide); } else { Anim.SetBool("show", false); } }
/// <summary> /// /// </summary> /// <param name="e"></param> void OnPoint(Speedbox.bl_GlobalEvents.OnPoint e) { Score = e.Point; if (!isInSecuence) { CurrentSecuence--; } }
/// <summary> /// /// </summary> /// <param name="e"></param> void OnPoint(Speedbox.bl_GlobalEvents.OnPoint e) { }
void OnPoint(Speedbox.bl_GlobalEvents.OnPoint e) { ScoreText.text = e.Point.ToString(); PointScoreAnim.Play("Point", 0, 0); }