add (currently broken) count in event

This commit is contained in:
DPS2004 2022-08-19 00:19:08 -04:00
parent 52b74c892f
commit 9af7606b37
7 changed files with 83 additions and 3 deletions

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1daa974ec8d342f44a194f1e34d37302
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0e4264e228ae6224e88e4a2e6bdad16c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View 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:

Binary file not shown.

View 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:

View file

@ -21,6 +21,8 @@ namespace HeavenStudio.Games.Loaders
new Param("toggle", false, "Driver can stop", "Lets the driver stop if the player makes too many mistakes"), 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"}, //new List<string>() {"ntr", "aim"},
@ -124,7 +126,7 @@ namespace HeavenStudio.Games
cowbellAnimator.Play("Shake",-1,0); 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; started = true;
@ -167,6 +169,24 @@ 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));
}
}
}