Exemplo n.º 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());
        }
Exemplo n.º 2
0
    void Start()
    {
        loader = GetComponent <LoadingController>();
        loader.CreateSlots();

        ui = FindObjectOfType <BattleUI>();

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