Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Inventory : MonoBehaviour
- {
- public static int charge = 0; //static variables are not shown in the Inspector
- public AudioClip collectSound;
- // Use this for initialization
- void Start ()
- {
- charge = 0;
- }
- // Update is called once per frame
- void Update ()
- {
- }
- void Cellpickup()
- {
- AudioSource.PlayClipAtPoint(collectSound, transform.position);
- charge++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement