mirror of
https://github.com/DerTyp7/grow-ai-unity.git
synced 2025-10-30 12:57:09 +01:00
added freetime etc
This commit is contained in:
27
Assets/Scripts/Work/Company.cs
Normal file
27
Assets/Scripts/Work/Company.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Company : MonoBehaviour
|
||||
{
|
||||
[Header("Company")]
|
||||
[SerializeField] string companyName = "Company";
|
||||
[SerializeField] int level = 1;
|
||||
|
||||
[SerializeField] City city;
|
||||
|
||||
[SerializeField] List<Workplace> workplaces= new List<Workplace>();
|
||||
|
||||
void Awake()
|
||||
{
|
||||
city.AddCompany(this);
|
||||
}
|
||||
|
||||
public void AddWorkplace(Workplace wp)
|
||||
{
|
||||
if (!workplaces.Contains(wp))
|
||||
{
|
||||
workplaces.Add(wp);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user