Call ev's ball effects for mandrill

I dread the actual ball itself
This commit is contained in:
blank3times 2024-03-25 01:36:25 -07:00
parent c55ef0adcf
commit 6700626920
2 changed files with 8 additions and 1 deletions

View file

@ -14755,6 +14755,8 @@ MonoBehaviour:
MandrillAnim: {fileID: 7328032147480881436} MandrillAnim: {fileID: 7328032147480881436}
GolferAnim: {fileID: 4858532593007320755} GolferAnim: {fileID: 4858532593007320755}
HoleAnim: {fileID: 4009601525859638624} HoleAnim: {fileID: 4009601525859638624}
GrassEffectAnim: {fileID: 519266665242695000}
BallEffectAnim: {fileID: 5742260183545522460}
--- !u!1 &8142126674384551194 --- !u!1 &8142126674384551194
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View file

@ -68,6 +68,8 @@ namespace HeavenStudio.Games
public Animator MandrillAnim; public Animator MandrillAnim;
public Animator GolferAnim; public Animator GolferAnim;
public Animator HoleAnim; public Animator HoleAnim;
public Animator GrassEffectAnim;
public Animator BallEffectAnim;
double whaleStartBeat; double whaleStartBeat;
float whaleLength; float whaleLength;
@ -187,6 +189,7 @@ namespace HeavenStudio.Games
new MultiSound.Sound("holeInOne/hole2", beat + 1f)// temp should be splash new MultiSound.Sound("holeInOne/hole2", beat + 1f)// temp should be splash
}); });
GolferAnim.DoScaledAnimationAsync("GolferMiss", 1.0f); GolferAnim.DoScaledAnimationAsync("GolferMiss", 1.0f);
BallEffectAnim.Play("BallEffectJust");
} }
else else
{ {
@ -200,6 +203,7 @@ namespace HeavenStudio.Games
BeatAction.New(instance, new List<BeatAction.Action>() BeatAction.New(instance, new List<BeatAction.Action>()
{ {
new BeatAction.Action(beat, delegate { GolferAnim.DoScaledAnimationAsync("GolferJust", 1.0f);}), new BeatAction.Action(beat, delegate { GolferAnim.DoScaledAnimationAsync("GolferJust", 1.0f);}),
new BeatAction.Action(beat, delegate { BallEffectAnim.Play("BallEffectJust");}),
new BeatAction.Action(beat + 2f, delegate { HoleAnim.DoScaledAnimationAsync("ZoomBig", 2.5f);}), new BeatAction.Action(beat + 2f, delegate { HoleAnim.DoScaledAnimationAsync("ZoomBig", 2.5f);}),
}); });
} }
@ -210,6 +214,7 @@ namespace HeavenStudio.Games
{ {
SoundByte.PlayOneShotGame("holeInOne/whale"); SoundByte.PlayOneShotGame("holeInOne/whale");
MonkeyAnim.Play("MonkeySpin"); MonkeyAnim.Play("MonkeySpin");
BallEffectAnim.Play("BallEffectThrough");
GolferAnim.Play("GolferThroughMandrill"); GolferAnim.Play("GolferThroughMandrill");
} }