Пример #1
0
        void Start()
        {
            loader = GetComponent <LoadingController>();
            loader.CreateSlots();

            UserProfile profile = new UserProfile(0, PlayerPrefs.GetInt("UserScore"));

            LevelSettings.SetUserProfile(profile);

            editor = FindObjectOfType <EditorInterfaceController>();
            editor.ShowSlots(loader.GetSlots(), LoadSlot);
            editor.ShowLoading(true);
            LoadSlot(loader.GetCurrentSlot());
        }
Пример #2
0
    void Start()
    {
        loader = GetComponent <LoadingController>();
        loader.CreateSlots();

        ui = FindObjectOfType <BattleUI>();

        if (LevelSettings.GetStructureOfPieces() == null)
        {
            ui.ShowLoading(true);
            LoadSlot(loader.GetCurrentSlot());
        }
        else
        {
            ShowStartDialog();
        }
    }