-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move globaltempo to main assets in unity
- Loading branch information
Showing
7 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
platforms/unity/Assets/BarelyMusician/Scripts/GlobalTempo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using UnityEngine; | ||
|
||
namespace Barely { | ||
[DisallowMultipleComponent] | ||
public class GlobalTempo : MonoBehaviour { | ||
[Tooltip("Sets the global tempo in beats per minute.")] | ||
[Range(30.0f, 960.0f)] | ||
public double Bpm = 120.0; | ||
|
||
private void Update() { | ||
Musician.Tempo = Bpm; | ||
} | ||
} | ||
} // namespace Barely |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.