Exemplo n.º 1
0
        public void SpawnPopup()
        {
            IPopupSpawner popupSpawner = ServiceLocator.Instance.GetService <IPopupSpawner>();

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

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