Пример #1
0
    void ChangeLevel(PackedScene lvl)
    {
        CurrentLevel = lvl.Instance();
        AddChild(CurrentLevel);

        var settings = CurrentLevel.GetNode <LevelSettings>("LevelSettings");

        SetLevelSettings(settings);

        player.InitializeLevel(CurrentLevel as Spatial, settings);

        LevelTimer = new Stopwatch();
    }