public override void Start() { if (gameData.featuredResources.Count == 0) { gameData.featuredResources.Add(ResourceData.Id("Holz")); gameData.featuredResources.Add(ResourceData.Id("Stein")); } if (gameData.openQuests.Count == 0) { foreach(Quest q in Quest.allQuests) if(q.starterQuest) gameData.openQuests.Add(new GameQuest(q)); } if(gameData.achievements.Count == 0) { foreach (Achievement ach in Achievement.allAchievements) gameData.achievements.Add(new GameAchievement(ach)); } foreach (Building b in Building.allBuildings) { if (b.unlockedFromStart) Building.Unlock(b.id); } // unlock fisher and researcher from beginning Job.Unlock(Job.Id("Fischer")); Job.Unlock(Job.Id("Tüftler")); dayChangeTimeElapsed = 0; // debugging is turned off by default debugging = Application.isEditor; noCost = debugging; gameOver = false; setupStart = false; // get reference to village script village = villageTrsf.gameObject.AddComponent<Village>(); gameFadeManager.Fade(false, 1f, 0.5f); base.Start(); }
public static void UnlockResource(string resNm) { UnlockResource(ResourceData.Id(resNm)); }
public GameResources(string name, int am) : this(ResourceData.Id(name), am) { }