本文整理汇总了C#中Song.GetAudioClip方法的典型用法代码示例。如果您正苦于以下问题:C# Song.GetAudioClip方法的具体用法?C# Song.GetAudioClip怎么用?C# Song.GetAudioClip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Song
的用法示例。
在下文中一共展示了Song.GetAudioClip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
//Start
void Start()
{
//Data from option
speedmod = DataManager.Instance.speedmodSelected*speedmodRate;
DataManager.Instance.LoadScoreJudge(DataManager.Instance.scoreJudgeSelected);
DataManager.Instance.LoadHitJudge(DataManager.Instance.hitJudgeSelected);
DataManager.Instance.LoadLifeJudge(DataManager.Instance.lifeJudgeSelected);
isFullComboRace = DataManager.Instance.raceSelected == 9;
isFullExComboRace = DataManager.Instance.raceSelected == 10;
targetScoreInverse = DataManager.Instance.giveTargetScoreOfRace(DataManager.Instance.raceSelected);
typeOfDeath = DataManager.Instance.deathSelected;
KeyCodeDown = DataManager.Instance.KeyCodeDown;
KeyCodeUp = DataManager.Instance.KeyCodeUp;
KeyCodeLeft = DataManager.Instance.KeyCodeLeft;
KeyCodeRight = DataManager.Instance.KeyCodeRight;
SecondaryKeyCodeDown = DataManager.Instance.SecondaryKeyCodeDown;
SecondaryKeyCodeUp = DataManager.Instance.SecondaryKeyCodeUp;
SecondaryKeyCodeLeft = DataManager.Instance.SecondaryKeyCodeLeft;
SecondaryKeyCodeRight = DataManager.Instance.SecondaryKeyCodeRight;
speedmodSelected = DataManager.Instance.speedmodSelected;
speedmodstring = DataManager.Instance.speedmodSelected.ToString("0.00");
speedmodok = true;
var rand = (int)(UnityEngine.Random.value*DataManager.Instance.skyboxList.Count);
if(rand == DataManager.Instance.skyboxList.Count){
rand--;
}
//Arrows
for(int i=0;i<4;i++){
if(i != DataManager.Instance.skinSelected){
var go = GameObject.Find("ArrowSkin" + i);
Destroy(go);
var go2 = GameObject.Find("ArrowModelSkin" + i);
Destroy(go2);
}
}
arrow = typeArrow.ElementAt(DataManager.Instance.skinSelected);
var modelskin = GameObject.Find("ArrowModelSkin" + DataManager.Instance.skinSelected);
modelskin.SetActiveRecursively(false);
arrowLeft = (GameObject) Instantiate(modelskin, new Vector3(0f, 0f, 2f), modelskin.transform.rotation);
if(DataManager.Instance.skinSelected == 3){
arrowLeft.transform.FindChild("RotationCenter").Rotate(0f, 0f, 90f);
}else if(DataManager.Instance.skinSelected != 0){
arrowLeft.transform.Rotate(0f, 0f, 90f);
arrowLeft.transform.FindChild("ParticulePrec").Rotate(0f, 0f, -90f);
arrowLeft.transform.FindChild("ParticulePrec").localPosition = new Vector3(-1f, 0f, 0f);
}
arrowLeft.transform.parent = MainCamera.gameObject.transform;
arrowRight = (GameObject) Instantiate(modelskin, new Vector3(6f, 0f, 2f), modelskin.transform.rotation);
if(DataManager.Instance.skinSelected == 3){
arrowRight.transform.FindChild("RotationCenter").Rotate(0f, 0f, -90f);
}else if(DataManager.Instance.skinSelected == 1){
arrowRight.transform.Rotate(0f, 0f, -90f);
arrowRight.transform.FindChild("ParticulePrec").Rotate(0f, 0f, 90f);
arrowRight.transform.FindChild("ParticulePrec").localPosition = new Vector3(1f, 0f, 0f);
}
arrowRight.transform.parent = MainCamera.gameObject.transform;
arrowDown = (GameObject) Instantiate(modelskin, new Vector3(2f, 0f, 2f), modelskin.transform.rotation);
if(DataManager.Instance.skinSelected == 3){
arrowDown.transform.FindChild("RotationCenter").Rotate(0f, 0f, 180f);
}else if(DataManager.Instance.skinSelected == 1){
arrowDown.transform.Rotate(0f, 0f, 180f);
arrowDown.transform.FindChild("ParticulePrec").Rotate(0f, 0f, -180f);
arrowDown.transform.FindChild("ParticulePrec").localPosition = new Vector3(0f, 1f, 0f);
}
arrowDown.transform.parent = MainCamera.gameObject.transform;
arrowUp = (GameObject) Instantiate(modelskin, new Vector3(4f, 0f, 2f), modelskin.transform.rotation);
arrowUp.transform.parent = MainCamera.gameObject.transform;
arrowTarget = new Transform[4];
arrowTarget[0] = arrowLeft.transform;
arrowTarget[1] = arrowDown.transform;
arrowTarget[2] = arrowUp.transform;
arrowTarget[3] = arrowRight.transform;
scaleBase = arrowTarget[0].localScale.x;
matArrowModel = matSkinModel[DataManager.Instance.skinSelected];
RenderSettings.skybox = DataManager.Instance.skyboxList.ElementAt(rand);
DataManager.Instance.skyboxIndexSelected = rand;
displayValue = DataManager.Instance.displaySelected;
firstArrow = -10f;
lastArrow = -10f;
thesong = DataManager.Instance.songSelected;
songLoaded = thesong.GetAudioClip();
audio.loop = false;
createTheChart(thesong);
Application.targetFrameRate = -1;
QualitySettings.vSyncCount = 0;
nextSwitchBPM = 1;
nextSwitchStop = 0;
actualBPM = thesong.bpms.First().Value;
actualstop = (double)0;
changeBPM = 0;
_count = 0L;
timebpm = (double)0;
//.........这里部分代码省略.........