Pickup Money
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PickupMoney : MonoBehaviour {
Currency script;
public int addAmount;
void Start()
{
script = GameObject.FindWithTag("GameController").GetComponent<Currency>();
}
void OnTriggerEnter(Collider obj)
{
if (obj.gameObject.tag == "Player")
{
script.gold += addAmount;
Destroy(gameObject);
}
}
}
 
 
 
 
![Best Laptop for Game Development in 2023 [ updated ]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSp_Ye8C9Veqy7XOMnC3hcra74d6g8Ay12QC1fGVrtedR9KkJQfo6HAhMa3TwGY-ZWvnso6Xr-FdEObAK5d1-uBYCQiO7Y4rylfUOmlBomgvStcShZI-JDbMtDl9IO-gfYgwHLLS4rOc/w72-h72-p-k-no-nu/hqdefault.jpg) 
 
 
 
Thank you for sharing such great information. can you help me in finding out more detail on CompTIA Certification Exams
ReplyDeleteJoseph smith i help you
DeleteWhat to Make Money From Online Casino - Work-to-Earn
ReplyDeleteHow do online casinos make money? — How do 메리트 카지노 online choegocasino casinos งานออนไลน์ make money? What to make money from online casino gambling? How do online casinos make money? How