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