Class BasicDemoMain
Simple code usage of MouseDance to run a Beatmap. This plays a countdown animation and then shows a simple Results screen afterwards.
Inheritance
BasicDemoMain
Namespace: MouseDance.Demo
Assembly: MouseDance.Demo.dll
Syntax
public class BasicDemoMain : MonoBehaviour, ISongStartCountdown, IBeatmapEnd
Fields
_beatmapRunner
Declaration
[SerializeField]
protected BeatmapRunner _beatmapRunner
Field Value
Type | Description |
---|---|
BeatmapRunner |
Properties
CountdownLength
Declaration
public float CountdownLength { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
Awake()
Declaration
protected virtual void Awake()
OnBeatmapEnd(IBeatmapResults)
Declaration
public void OnBeatmapEnd(IBeatmapResults results)
Parameters
Type | Name | Description |
---|---|---|
IBeatmapResults | results |
OnStartCountdown()
Declaration
public void OnStartCountdown()
Pause(Boolean)
Called when user presses the pause button in the UI. See Show().
Declaration
public void Pause(bool pause)
Parameters
Type | Name | Description |
---|---|---|
Boolean | pause |
Restart()
Called by OptionsDisplay when user clicks on the Restart button.
Declaration
public virtual void Restart()
StartGame()
Declaration
public void StartGame()