Implement basic production chain logic

This commit is contained in:
2024-08-18 00:57:49 +02:00
parent 862f6c4caa
commit 67c6597c21
107 changed files with 63765 additions and 268 deletions

26
Assets/Scripts/Mine.cs Normal file
View File

@@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Mine : MonoBehaviour
{
public Resource resource;
private GameManager gameManager;
// Start is called before the first frame update
void Start()
{
gameManager = GameObject.Find("GameManager").GetComponent<GameManager>();
}
// Update is called once per frame
void Update()
{
}
private void OnMouseDown()
{
gameManager.AddResource(resource, 1);
}
}