fin in missing params?

needs testing
This commit is contained in:
minenice55 2022-09-21 09:48:53 -04:00
parent a1133d3622
commit 2bf5292808
2 changed files with 21 additions and 0 deletions

View file

@ -355,6 +355,12 @@ namespace HeavenStudio
if (!dynamicData.ContainsKey(param.propertyName)) if (!dynamicData.ContainsKey(param.propertyName))
{ {
type = param.parameter.GetType(); type = param.parameter.GetType();
//add property if it doesn't exist
if (e[param.propertyName] == null)
{
dynamicData.Add(param.propertyName, param.parameter);
continue;
}
pType = e[param.propertyName].GetType(); pType = e[param.propertyName].GetType();
if (pType == type) if (pType == type)
{ {

View file

@ -189,6 +189,21 @@ namespace HeavenStudio.Games
//coin.perfectOnly = true; //coin.perfectOnly = true;
} }
public void TossCoin(float beat)
{
if (coin != null) return;
//Play sound and animations
Jukebox.PlayOneShotGame("coinToss/throw");
handAnimator.Play("Throw", 0, 0);
//Game state says the hand is throwing the coin
isThrowing = true;
this.audienceReacting = false;
coin = ScheduleInput(beat, 6f, InputType.STANDARD_DOWN, CatchSuccess, CatchMiss, CatchEmpty);
//coin.perfectOnly = true;
}
public void CatchSuccess(PlayerActionEvent caller, float state) public void CatchSuccess(PlayerActionEvent caller, float state)
{ {
Jukebox.PlayOneShotGame("coinToss/catch"); Jukebox.PlayOneShotGame("coinToss/catch");