Add HiO sounds
Script still has instance issues but that's also a savesate
This commit is contained in:
parent
1a94838cd9
commit
506ab9bade
8
Assets/Resources/Sfx/games/holeInOne.meta
Normal file
8
Assets/Resources/Sfx/games/holeInOne.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a96f87fb28b80a94e8145f468ac40ce7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sfx/games/holeInOne/hole1.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/hole1.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/hole1.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/hole1.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6f37f97d5a693854f935a4ae840bb0a9
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/hole2.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/hole2.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/hole2.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/hole2.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0229791fee06a9f438c8dcff97838818
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/hole3.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/hole3.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/hole3.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/hole3.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 826f05891e5c9f64880177651fc62742
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/hole4.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/hole4.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/hole4.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/hole4.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2baec7fdc378fbb4f8f30b152efb54a1
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill1.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill1.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/mandrill1.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/mandrill1.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f93648b2381503346a79d0f3300b7b43
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill2.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill2.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/mandrill2.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/mandrill2.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 344af51407329a14c978639a46d3b36e
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill3.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill3.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/mandrill3.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/mandrill3.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6b85b5635c0cb2346943cf15e64e805c
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill4.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/mandrill4.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/mandrill4.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/mandrill4.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b0cb3064169f272489f5ee7b25391703
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/monkey1.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/monkey1.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/monkey1.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/monkey1.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3663a6aaffe973b40afd59032c629131
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/monkey2.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/monkey2.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/monkey2.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/monkey2.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e81a6ca27a86a9445aa186513bf43997
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/monkey3.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/monkey3.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/monkey3.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/monkey3.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d7c40be9653964341af1360806bf53c3
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/holeInOne/whale.ogg
Normal file
BIN
Assets/Resources/Sfx/games/holeInOne/whale.ogg
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/holeInOne/whale.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/holeInOne/whale.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e4f28551c57f0a4cbe07781c15e3418
|
||||
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:
|
|
@ -18,14 +18,14 @@ namespace HeavenStudio.Games.Loaders
|
|||
{
|
||||
return new Minigame("holeInOne", "Hole in One", "6ab99e", false, false, new List<GameAction>()
|
||||
{
|
||||
// new GameAction("testanims", "Test Animation")
|
||||
// {
|
||||
// function = delegate { HoleInOne.instance.DoTestAnim(eventCaller.currentEntity.beat); },
|
||||
// }
|
||||
},
|
||||
new List<string>() { "rvl", "normal" },
|
||||
"rvlgolf", "en",
|
||||
new List<string>() { }
|
||||
new GameAction("testanims", "Test Animation")
|
||||
{
|
||||
function = delegate { HoleInOne.instance.DoTestAnim(eventCaller.currentEntity.beat); },
|
||||
}
|
||||
}//,
|
||||
// new List<string>() { "rvl", "normal" },
|
||||
// "rvlgolf", "en",
|
||||
// new List<string>() { }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -37,20 +37,30 @@ namespace HeavenStudio.Games
|
|||
/// Minigame inherits directly from MonoBehaviour, and adds Heaven Studio specific methods to override.
|
||||
public class HoleInOne : Minigame
|
||||
{
|
||||
// public Animator Monkey;
|
||||
public Animator Monkey;
|
||||
|
||||
// public static HoleInOne instance;
|
||||
public static HoleInOne instance;
|
||||
|
||||
// public void DoTestAnim(double beat)
|
||||
// {
|
||||
// //Bell Sound lol
|
||||
// SoundByte.PlayOneShotGame("rhythmSomen/somen_bell");
|
||||
// Awake is called before the first frame update
|
||||
void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
// BeatAction.New(this, new List<BeatAction.Action>()
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void DoTestAnim(double beat)
|
||||
{
|
||||
SoundByte.PlayOneShotGame("holeInOne/whale");
|
||||
|
||||
// BeatAction.New(instance, new List<BeatAction.Action>()
|
||||
// {
|
||||
// new BeatAction.Action(beat, delegate { Monkey.DoScaledAnimationAsync("MonkeySpin", 0.5f);}),
|
||||
// });
|
||||
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue