Esempio n. 1
0
 private void OnLevelWasLoaded(int index)
 {
     currentLevel++;
     UI.FindUiElements();
     InitGame();
     Army.instance.asylumVisited = false;
 }
Esempio n. 2
0
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        level        = Level.Instance;
        GS           = GlobalSettings.Instance;
        currentLevel = GS.startingLevel;
        UI           = Userinteraface.Instance;
        UI.FindUiElements();
        resources = Resources.Instance;
        HS        = Highscore.instance;

        DontDestroyOnLoad(gameObject);
        boardScript = GetComponent <BoardManager>();
        InitGame();
    }