| 1234567891011121314151617 |
- using UnityEngine;
- public class Farm : MonoBehaviour
- {
- [SerializeField] private int maxWorkers = 2;
- private int currentWorkers = 0;
- void Start()
- {
- Debug.Log("Farm created (legacy system)");
- }
- public string GetBuildingInfo()
- {
- return $"Farm\nWorkers: {currentWorkers}/{maxWorkers}";
- }
- }
|