Update HoleInOne.cs
Slightly closer to animation?
This commit is contained in:
parent
59430264c2
commit
117ae9443e
|
@ -47,29 +47,22 @@ namespace HeavenStudio.Games
|
||||||
/// Minigame inherits directly from MonoBehaviour, and adds Heaven Studio specific methods to override.
|
/// Minigame inherits directly from MonoBehaviour, and adds Heaven Studio specific methods to override.
|
||||||
public class HoleInOne : Minigame
|
public class HoleInOne : Minigame
|
||||||
{
|
{
|
||||||
public Animator Monkey;
|
public Animator MonkeyAnimator;
|
||||||
|
public GameObject Monkey;
|
||||||
|
|
||||||
public static HoleInOne instance;
|
public static HoleInOne instance;
|
||||||
|
|
||||||
// Awake is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
HoleInOne.instance = this;
|
HoleInOne.instance = this;
|
||||||
}
|
MonkeyAnimator = GetComponent<Animator>();
|
||||||
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DoTestAnim(double beat)
|
public void DoTestAnim(double beat)
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("holeInOne/whale");
|
SoundByte.PlayOneShotGame("holeInOne/whale");
|
||||||
|
MonkeyAnimator.Play("MonkeySpin");
|
||||||
BeatAction.New(instance, new List<BeatAction.Action>()
|
|
||||||
{
|
|
||||||
new BeatAction.Action(beat, delegate { Monkey.DoScaledAnimationAsync("MonkeySpin", 0.5f);}),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DoMandrill(double beat)
|
public void DoMandrill(double beat)
|
||||||
|
|
Loading…
Reference in a new issue