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

loppufanfaari ja upgrade-efektiääni lisätty

parent 2e7b7b6e
No related branches found
No related tags found
No related merge requests found
File added
fileFormatVersion: 2
guid: 92c943f07ca06a24eaefb388684f1393
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:
File added
fileFormatVersion: 2
guid: 45e52c1f15bed25449d1ddf3e788c063
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:
......@@ -303,7 +303,7 @@ PrefabInstance:
type: 3}
propertyPath: musics.Array.data[0]
value:
objectReference: {fileID: 0}
objectReference: {fileID: 8300000, guid: 92c943f07ca06a24eaefb388684f1393, type: 3}
- target: {fileID: 203678261489018089, guid: 530bea3a047bd31458b647c456257c63,
type: 3}
propertyPath: musics.Array.data[1]
......@@ -323,7 +323,7 @@ PrefabInstance:
type: 3}
propertyPath: musics.Array.data[4]
value:
objectReference: {fileID: 0}
objectReference: {fileID: 8300000, guid: 45e52c1f15bed25449d1ddf3e788c063, type: 3}
- target: {fileID: 203678261489018089, guid: 530bea3a047bd31458b647c456257c63,
type: 3}
propertyPath: musics.Array.data[5]
......
......@@ -60,11 +60,11 @@ public class AudioSystem : MonoBehaviour, IAction
}
if (type == EventType.UpgradeBuilt)
{
UpgradeClip();
}
if (type == EventType.TimePeriodChanged)
{
FanfareClip();
}
}
......@@ -106,6 +106,14 @@ public class AudioSystem : MonoBehaviour, IAction
{
StartCoroutine("PlayEffect", 9);
}
public void UpgradeClip()
{
StartCoroutine("PlayEffect", 4);
}
public void FanfareClip()
{
StartCoroutine("FadeOutIn", new Timing(0, 0));
}
IEnumerator FadeOutIn(Timing t) {
//yield return 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