Exemplo n.º 1
0
 public void CheckCompletionGraffiti()
 {
     if (GraffitiData.Progress >= GraffitiData.blocksCount)
     {
         EventGraffitiCompleted?.Invoke();
     }
 }
Exemplo n.º 2
0
        private void OnGraffitiCompleted()
        {
            SendDrawnEvent();

            m_productionBuildingData.isDrawn = true;

            ParticleManager.Instance.SpawnParticle(ParticleType.Confetti, FindObjectOfType <GraffitiAreaTile>().ConfetiSpawnPos);

            DOTween.Sequence().SetDelay(ConfigManager.Instance.Get <GameConfig>().DelayBeforeEndGame)
            .OnComplete(() =>
            {
                LevelManager.Instance.Building.HideScaffolding(ConfigManager.Instance.Get <GameConfig>().ScaffoldingHideDuration);
                EventGraffitiCompleted?.Invoke();
            });

            ScreensManager.Instance.GetScreen <GameScreen>().TryToShowBackButtonTutorial();
        }