private void SetRefs() { uiManagement = FindObjectOfType <UiManagement>(); uiManagement.SetBossLifeBarUIVisibility(true); uiManagement.setBosslifeBarUI(); uiManagement.updateBosslifeBarUI(); bossSpriteManager = GetComponent <BossSpriteManager>(); }
private void TriggerEndLevelEvents() { uiManagement.SetBossLifeBarUIVisibility(false); if (bossesContainer) /*posso tar só testando entao ter ele desativa */ { bossesContainer.DecreaseBossesNumber(); } bossSpriteManager.SetDieColor(); bossSpriteManager.GenerateExplosions(delayTime); }