Skip to content
Snippets Groups Projects
Commit 78c07f98 authored by Tony Pohto's avatar Tony Pohto
Browse files

voittomusa lisätty

parent 23aef899
No related branches found
No related tags found
No related merge requests found
File added
fileFormatVersion: 2
guid: 584a9744e24de204abc89d99211a232b
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
......@@ -1076,7 +1076,7 @@ PrefabInstance:
- target: {fileID: 203678261489018089, guid: 530bea3a047bd31458b647c456257c63,
type: 3}
propertyPath: musics.Array.size
value: 10
value: 11
objectReference: {fileID: 0}
- target: {fileID: 203678261489018089, guid: 530bea3a047bd31458b647c456257c63,
type: 3}
......@@ -1128,6 +1128,11 @@ PrefabInstance:
propertyPath: musics.Array.data[5]
value:
objectReference: {fileID: 8300000, guid: a5c5c1c02f056e04ca16e3277134468a, type: 3}
- target: {fileID: 203678261489018089, guid: 530bea3a047bd31458b647c456257c63,
type: 3}
propertyPath: musics.Array.data[10]
value:
objectReference: {fileID: 8300000, guid: 584a9744e24de204abc89d99211a232b, type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 530bea3a047bd31458b647c456257c63, type: 3}
--- !u!1 &1968252522
......
......@@ -66,7 +66,10 @@ public class AudioSystem : MonoBehaviour, IAction
{
FanfareClip();
}
if (type == EventType.WinMusic)
{
WinClip();
}
}
......@@ -114,7 +117,10 @@ public class AudioSystem : MonoBehaviour, IAction
{
StartCoroutine("FadeOutIn", new Timing(0, 0));
}
public void WinClip()
{
StartCoroutine("FadeOutIn", new Timing(1, 10));
}
IEnumerator FadeOutIn(Timing t) {
//yield return FadeOut(t.duration);
yield return StartCoroutine("FadeOut", t.duration);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment