コード例 #1
0
        // TODO: Deprecate this
        public void LoadTablesFromPath(LanguageCode language, string dbName)
        {
            var path = language + "/" + dbName + "/" + dbName + "_";

            //Debug.LogWarning("Loading database at path " + path);

            stageDb = Resources.Load <StageDatabase>(path + "Stage");
            if (!stageDb)
            {
                // Debug.LogError("Could not load StageDatabase db");
            }

            playsessionDb = Resources.Load <PlaySessionDatabase>(path + "PlaySession");
            if (!playsessionDb)
            {
                // Debug.LogError("Could not load PlaySessionDatabase db");
            }

            learningblockDb = Resources.Load <LearningBlockDatabase>(path + "LearningBlock");
            if (!learningblockDb)
            {
                // Debug.LogError("Could not load LearningBlockDatabase db");
            }

            minigameDb = Resources.Load <MiniGameDatabase>(path + "MiniGame");
            if (!minigameDb)
            {
                // Debug.LogError("Could not load MiniGameDatabase db");
            }

            letterDb = Resources.Load <LetterDatabase>(path + "Letter");
            if (!letterDb)
            {
                // Debug.LogError("Could not load LetterDatabase db");
            }

            wordDb = Resources.Load <WordDatabase>(path + "Word");
            if (!wordDb)
            {
                // Debug.LogError("Could not load WordDatabase db");
            }

            phraseDb = Resources.Load <PhraseDatabase>(path + "Phrase");
            if (!phraseDb)
            {
                // Debug.LogError("Could not load PhraseDatabase db");
            }

            localizationDb = Resources.Load <LocalizationDatabase>(path + "Localization");
            if (!localizationDb)
            {
                // Debug.LogError("Could not load LocalizationDatabase db");
            }

            rewardDb = Resources.Load <RewardDatabase>(path + "Reward");
            if (!rewardDb)
            {
                // Debug.LogError("Could not load RewardDatabase db");
            }
        }
コード例 #2
0
        public void LoadTablesFromEdition()
        {
            var edition = AppManager.I.SpecificEdition;

            stageDb         = edition.StageDB;
            learningblockDb = edition.LearningBlockDB;
            playsessionDb   = edition.PlaySessionDB;
            minigameDb      = edition.MiniGameDB;
            localizationDb  = edition.LocalizationDB;
            letterDb        = edition.LetterDB;
            wordDb          = edition.WordDB;
            phraseDb        = edition.PhraseDB;
            rewardDb        = edition.RewardDB;
        }