Files
ichni_Official/Assets/Scripts/Game/Base/ProjectFiles/SongInformation.cs
SoulliesOfficial 7580c4d87c 大更
2026-03-14 03:13:10 -04:00

31 lines
972 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame.Beatmap;
using UnityEngine;
namespace Ichni.RhythmGame
{
public class SongInformation : IBaseElement
{
public AudioClip song; //曲目
public string songName;
public string songLocation; //曲名
public float bpm; //每分钟节拍数
public float delay; //设定音乐和谱面延迟Delay秒后开始在延迟中SongPosition为负数。
public float songLength;
public float offset = 0f;
public BaseElement_BM matchedBM { get; set; }
public SongInformation(string songName, float bpm, float delay, float offset)
{
this.songName = songName;
this.bpm = bpm;
this.delay = delay;
this.offset = offset;
GameManager.Instance.songPlayer.songTimeSegment = -delay; // 初始化时,歌曲时间为负
}
}
}