public void DayStart() { IsTheSunAwakeAndTheBirdAreSinging = true; newRound(); soundManager.PlayAmbuanceMusic("day_theme", GameVariables.Cycle.volumeThemes); soundManager.PlaySound("safe_place_to_rest", GameVariables.Cycle.volumeVoice); soundManager.PlaySound("bird", GameVariables.Cycle.volumeEffects); printNbSHeeps(); getGoldsRound(); cycleManager.GoToAngle((GameVariables.Cycle.duskAngle - cycleManager.GetCurentCycle()) / GameVariables.Cycle.dayDuration, (int)GameVariables.Cycle.duskAngle); TrapsCreationPannel.SetActive(true); PanelWolvesAliveInRound.SetActive(false); SheepsInInventory.SetActive(true); if (_roundNumber == 1) { TutorialOpen.instance.OpenTutorial(GameVariables.Tutorials.howToPlay); } if (_roundNumber == 2) { TutorialOpen.instance.OpenTutorial(GameVariables.Tutorials.golds); } }
private void Start() { soundManager = gameObject.GetComponent <SoundManager>(); _enclosureManager = EnclosureManager.Instance; cycleManager = CycleManagerObject.GetComponent <CycleManager>(); cycleManager.SubscribCycle(this); cycleManager.GoToAngle(1, 30); TotalSheeps = GameVariables.Initialisation.numberSheeps; Time.timeScale = 1; GetComponent <DifficultyManager>().SetDiffilculty(); Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; if (SProfilePlayer.getInstance().AchievementsManager.GetAchievementByName("Player").IsComplete()) { TotalSuperSheeps = 1; } else { TotalSuperSheeps = 0; } DayStart(); }