Implemented barelies into nightwalk gba

This commit is contained in:
Rapandrasmus 2023-06-24 13:47:13 +02:00
parent b814294f2a
commit 06afe43cef
4 changed files with 15 additions and 3 deletions

View file

@ -256,7 +256,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0

View file

@ -332,7 +332,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0

View file

@ -347,7 +347,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0

View file

@ -226,6 +226,18 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
}
if (state >= 1 || state <= -1)
{
switch (type)
{
case PlatformType.Flower:
anim.DoScaledAnimationAsync("FlowerBarely", 0.5f);
break;
case PlatformType.Lollipop:
anim.DoScaledAnimationAsync("LollipopBarely", 0.5f);
break;
case PlatformType.Umbrella:
anim.DoScaledAnimationAsync("UmbrellaBarely", 0.5f);
break;
}
return;
}
if (doFillStartSound) SoundByte.PlayOneShotGame("nightWalkAgb/fillStart");