Example #1
0
    private void StartCurrentLevel()
    {
        InitSpawnableUIsForLevel();
        BroadcastMessage("PlaySound", "MorningCrow", SendMessageOptions.DontRequireReceiver);
        currentState = GameStates.BRIEFING;
        briefingPanel.SetActive(true);
        delayUntilNextSpawn = GetLevelArrayValue(startDelay);

        ruleController.OnDay(currentLevel);
        var briefingText = briefingPanel.GetComponent <BriefingText> ();

        briefingText.SetBriefingTextTo(ruleController.GetCreatedRuleDescriptions());

        ShowFadeIn();
    }