public void SpawnPopup()
        {
            IPopupSpawner popupSpawner = ServiceLocator.Instance.GetService <IPopupSpawner>();

            popupSpawner.RequestSpawn(this.building.Config.popupSceneName, new BuildingPopup.BuildingSpawnInfo()
            {
                config = this.building.Config
            });
        }
Example #2
0
        public void OpenSettings()
        {
            IPopupSpawner spawner = ServiceLocator.Instance.GetService <IPopupSpawner>();

            spawner.RequestSpawn("SettingsPopup", null);
        }