void Awake() { singleton = this; SetGlobalBpm(); Reset(); Native.Pause(globalPause); }
void SetGlobalPause() { Native.SetBeatTime(globalBeatTime); Native.Pause(pause_); lastSampledTime = AudioSettings.dspTime; globalPause = pause_; }
void OnDestroy() { Native.Pause(false); }