mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
add (currently broken) count in event
This commit is contained in:
parent
2ff810ff17
commit
e157a71eae
5 changed files with 83 additions and 3 deletions
8
Assets/Resources/Sfx/games/tunnel.meta
Normal file
8
Assets/Resources/Sfx/games/tunnel.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1daa974ec8d342f44a194f1e34d37302
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Resources/Sfx/games/tunnel/en.meta
Normal file
8
Assets/Resources/Sfx/games/tunnel/en.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0e4264e228ae6224e88e4a2e6bdad16c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
22
Assets/Resources/Sfx/games/tunnel/en/one.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/tunnel/en/one.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e0be43dd44a584c4a8e9bd7491ebf4cb
|
||||
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:
|
22
Assets/Resources/Sfx/games/tunnel/en/two.ogg.meta
Normal file
22
Assets/Resources/Sfx/games/tunnel/en/two.ogg.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a8472e0311bad6d46a721bdb660dc0bf
|
||||
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:
|
|
@ -21,7 +21,9 @@ namespace HeavenStudio.Games.Loaders
|
|||
new Param("toggle", false, "Driver can stop", "Lets the driver stop if the player makes too many mistakes"),
|
||||
}),
|
||||
|
||||
|
||||
new GameAction("Count In", delegate { Tunnel.instance.CountIn(eventCaller.currentEntity.beat, eventCaller.currentEntity.length); }, 1f, true),
|
||||
|
||||
|
||||
}
|
||||
//new List<string>() {"ntr", "aim"},
|
||||
//"ntrcoin", "en",
|
||||
|
@ -124,7 +126,7 @@ namespace HeavenStudio.Games
|
|||
cowbellAnimator.Play("Shake",-1,0);
|
||||
}
|
||||
|
||||
public void StartCowbell(float beat, bool audienceReacting, float length)
|
||||
public void StartCowbell(float beat, bool driverStops, float length)
|
||||
{
|
||||
started = true;
|
||||
|
||||
|
@ -167,8 +169,26 @@ namespace HeavenStudio.Games
|
|||
|
||||
|
||||
|
||||
public void CountIn(float beat, float length)
|
||||
{
|
||||
for (int i = 0; i <= length; i++)
|
||||
{
|
||||
if(i % 2 == 0)
|
||||
{
|
||||
Jukebox.PlayOneShotGame("tunnel/en/one", beat+i);
|
||||
print("cueing one at " + (beat + i));
|
||||
}
|
||||
else
|
||||
{
|
||||
Jukebox.PlayOneShotGame("tunnel/en/two", beat+i);
|
||||
print("cueing two at " + (beat + i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue