Finish production line logic

This commit is contained in:
2024-08-18 17:03:09 +02:00
parent 67c6597c21
commit a7fd4a2fb1
21 changed files with 2558 additions and 736 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class Spinbox : MonoBehaviour
{
public AssignableWorker target;
[SerializeField]
private TMP_Text numAssignedLabel;
private void Start()
{
target = transform.parent.GetComponent<AssignableWorker>();
}
private void Update()
{
numAssignedLabel.text = target.GetAssignedWorkers().ToString();
}
}