public List <IManufacture> SpawningOrder = new List <IManufacture>(); // which one gets created first

    public void Awake()
    {
        HpFactory = new HarvestPointFactory(HarvestPointLocationTransforms);
        HpFactory.AssignGameDataBase(GameData);
        creatureFactory.AssignGameDataBase(GameData);
        SpawningOrder.Add(creatureFactory);
        SpawningOrder.Add(HpFactory);
        RunManufactureScripts();
    }
Beispiel #2
0
    public void create5RandomCitizen()
    {
#if UNITY_EDITOR
        UnityEditor.EditorUtility.SetDirty(GameData);
#endif
        creatureFactory.AssignGameDataBase(GameData);
        for (int i = 0; i < 5; i++)
        {
            creatureFactory.CreateRandomCitizen();
        }
    }