Farm.cs 336 B

1234567891011121314151617
  1. using UnityEngine;
  2. public class Farm : MonoBehaviour
  3. {
  4. [SerializeField] private int maxWorkers = 2;
  5. private int currentWorkers = 0;
  6. void Start()
  7. {
  8. Debug.Log("Farm created (legacy system)");
  9. }
  10. public string GetBuildingInfo()
  11. {
  12. return $"Farm\nWorkers: {currentWorkers}/{maxWorkers}";
  13. }
  14. }