Add CollectCoins
This commit is contained in:
1 parent
c404a1c315
commit
75cf61f5a9
482 files changed
+19548
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class InventoryScript : MonoBehaviour {
|
||||
|
||||
// Use this for initialization
|
||||
public AudioClip pickupSound;
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
|
||||
void pickup()
|
||||
{
|
||||
AudioSource.PlayClipAtPoint(pickupSound, transform.position);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user