コード例 #1
0
    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);
        }
    }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 void OnPoint(Speedbox.bl_GlobalEvents.OnPoint e)
 {
     Score = e.Point;
     if (!isInSecuence)
     {
         CurrentSecuence--;
     }
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 void OnPoint(Speedbox.bl_GlobalEvents.OnPoint e)
 {
 }
コード例 #4
0
 void OnPoint(Speedbox.bl_GlobalEvents.OnPoint e)
 {
     ScoreText.text = e.Point.ToString();
     PointScoreAnim.Play("Point", 0, 0);
 }