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
        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();
        }
Example #3
0
        public void OpenSettings()
        {
            IPopupSpawner spawner = ServiceLocator.Instance.GetService <IPopupSpawner>();

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