First project upload

This commit is contained in:
Rohan
2026-06-26 22:41:39 +05:30
parent 7f6e734b16
commit 604c0c786a
4637 changed files with 4299718 additions and 489307 deletions

View File

@@ -0,0 +1,25 @@
using UnityEngine;
public class DroppedCash : MonoBehaviour
{
private int value;
public void SetValue(int amount)
{
value = amount;
}
private void OnTriggerEnter(Collider other)
{
if (!other.CompareTag("Player"))
return;
CashManager cashManager = other.GetComponent<CashManager>();
if (cashManager != null)
{
cashManager.AddCash(value);
Destroy(gameObject);
}
}
}