Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        currentInt = Mathf.Max(0.0f, currentInt - Time.deltaTime);
        if (currentInt <= 0.0f)
        {
//			Debug.Log ("Beat");
            b.onBeat(1);
            currentInt = interval;
        }
    }