public void SpawnPopup() { IPopupSpawner popupSpawner = ServiceLocator.Instance.GetService <IPopupSpawner>(); popupSpawner.RequestSpawn(this.building.Config.popupSceneName, new BuildingPopup.BuildingSpawnInfo() { config = this.building.Config }); }
void Awake() { IPopupSpawner spawner = ServiceLocator.Instance.GetService <IPopupSpawner>(); SpawnInfo info = spawner.HandlePopupSpawned(this.SceneName); this.canvas.worldCamera = UICamera.Current.GetComponent <Camera>(); this.RegisterPopup(); this.InitContent(info); this.Appear(); }
public void OpenSettings() { IPopupSpawner spawner = ServiceLocator.Instance.GetService <IPopupSpawner>(); spawner.RequestSpawn("SettingsPopup", null); }