Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class MoedaScript : MonoBehaviour
- {
- public static int _totalMoedas = 0;
- void Start()
- {
- _totalMoedas++;
- }
- // Update is called once per frame
- void OnDestroy()
- {
- _totalMoedas++;
- }
- private void OnTriggerEnter(Collider other)
- {
- Debug.Log("Esbarrou!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement