修闪
This commit is contained in:
@@ -8,11 +8,18 @@ namespace Ichni.Editor
|
||||
{
|
||||
public class MusicPlayer : MonoBehaviour
|
||||
{
|
||||
public bool isDebugging;
|
||||
public bool isPlaying;
|
||||
public AudioSource audioSource;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (isDebugging)
|
||||
{
|
||||
EditorManager.instance.songInformation.songTime += Time.deltaTime;
|
||||
return;
|
||||
}
|
||||
|
||||
if (isPlaying)
|
||||
{
|
||||
EditorManager.instance.songInformation.songTime = EditorManager.instance.musicPlayer.audioSource.time;
|
||||
|
||||
Reference in New Issue
Block a user