public void SpawnPopup() { IPopupSpawner popupSpawner = ServiceLocator.Instance.GetService <IPopupSpawner>(); popupSpawner.RequestSpawn(this.building.Config.popupSceneName, new BuildingPopup.BuildingSpawnInfo() { config = this.building.Config }); }
public void OpenSettings() { IPopupSpawner spawner = ServiceLocator.Instance.GetService <IPopupSpawner>(); spawner.RequestSpawn("SettingsPopup", null); }