Gamejam Release

This commit is contained in:
2024-08-20 19:51:14 +02:00
parent 5b9766de50
commit a4660d6e4b
7 changed files with 387 additions and 42 deletions

View File

@@ -8,7 +8,10 @@ public class AssignableWorker : MonoBehaviour
private TogglePurchaseAmount purchaseAmount;
private GameManager gameManager;
private int workerAmount = 0;
[SerializeField]
private GameObject mouseNotificationLabel;
// Start is called before the first frame update
void Start()
{
@@ -29,6 +32,11 @@ public class AssignableWorker : MonoBehaviour
{
workersAssigned += workerAmount;
gameManager.RemoveResource(Resource.WORKER, workerAmount);
} else
{
GameObject infoLabel = Instantiate(mouseNotificationLabel, GameObject.Find("Canvas").transform);
infoLabel.GetComponent<MousePosLabel>().tmp.text = "No worker available!";
infoLabel.GetComponent<MousePosLabel>().direction = new Vector3(0, 4, 0);
}