// 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; } }
// 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; } }