Connect monkey animator to script
finally
This commit is contained in:
parent
0991d2ba5d
commit
33265d8af6
|
@ -11152,8 +11152,7 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
SoundSequences: []
|
||||
scheduledInputs: []
|
||||
MonkeyAnimator: {fileID: 0}
|
||||
Monkey: {fileID: 0}
|
||||
MonkeyAnim: {fileID: 1030266998071523622}
|
||||
--- !u!1 &8142126674384551194
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -47,8 +47,7 @@ namespace HeavenStudio.Games
|
|||
/// Minigame inherits directly from MonoBehaviour, and adds Heaven Studio specific methods to override.
|
||||
public class HoleInOne : Minigame
|
||||
{
|
||||
public Animator MonkeyAnimator;
|
||||
public GameObject Monkey;
|
||||
public Animator MonkeyAnim;
|
||||
|
||||
public static HoleInOne instance;
|
||||
|
||||
|
@ -56,13 +55,12 @@ namespace HeavenStudio.Games
|
|||
void Awake()
|
||||
{
|
||||
HoleInOne.instance = this;
|
||||
MonkeyAnimator = Monkey.GetComponent<Animator>();
|
||||
}
|
||||
|
||||
public void DoTestAnim(double beat)
|
||||
{
|
||||
SoundByte.PlayOneShotGame("holeInOne/whale");
|
||||
MonkeyAnimator.Play("MonkeySpin");
|
||||
MonkeyAnim.Play("MonkeySpin");
|
||||
}
|
||||
|
||||
public void DoMandrill(double beat)
|
||||
|
|
|
@ -52,5 +52,8 @@ MonoBehaviour:
|
|||
- Assets/Scripts/Games/PlayerActionEvent.cs
|
||||
- Assets/Scripts/Games/KarateMan/KarateManPot.cs
|
||||
- Assets/Scripts/Games/DJSchool/DJSchool.cs
|
||||
- Assets/Scripts/Games/Minigame.cs
|
||||
- Assets/Scripts/GameManager.cs
|
||||
- Assets/Scripts/Minigames.cs
|
||||
PathsToSkipImportEvent: []
|
||||
PathsToIgnoreOverwriteSettingOnAttribute: []
|
||||
|
|
Loading…
Reference in a new issue