Skip to content

Commit 5d1652e

Browse files
committed
火圈控制器/PlayerController完善
1 parent 724ee67 commit 5d1652e

15 files changed

Lines changed: 144 additions & 39 deletions
10 KB
Binary file not shown.

CircusGameOnFC/Assets/Resources/Animator/FireCircle1.anim.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
10 KB
Binary file not shown.

CircusGameOnFC/Assets/Resources/Animator/FireCircle2.anim.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
6.87 KB
Binary file not shown.

CircusGameOnFC/Assets/Resources/Animator/火圈a1.controller.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
6.87 KB
Binary file not shown.

CircusGameOnFC/Assets/Resources/Animator/火圈a1f.controller.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2.2 KB
Binary file not shown.

CircusGameOnFC/Assets/Scripts/AudioManager.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class AudioManager : MonoBehaviour
66
{
77

8-
private AudioManager audioManager = null;
8+
private static AudioManager audioManager = null;
99
private AudioSource audioSource;
1010

1111
[SerializeField]
@@ -21,6 +21,11 @@ void Start()
2121
audioSource = this.GetComponent<AudioSource>();
2222
}
2323

24+
public static AudioManager GetInstance()
25+
{
26+
return audioManager;
27+
}
28+
2429
public void PlayJumpEffect()
2530
{
2631
if (audioJump != null)
@@ -35,7 +40,7 @@ public void PlayDieEffect()
3540
{
3641
audioSource.Stop();
3742
audioSource.PlayOneShot(audioDieA);
38-
Invoke("PlayDieEffectB",1.0f);
43+
Invoke("PlayDieEffectB", 1.0f);
3944
}
4045
}
4146

0 commit comments

Comments
 (0)