Beispiel #1
0
    // Start is called before the first frame update
    private IEnumerator Init()
    {
        JobData.Load();
        SkillData.Load();
        EnemyData.Load();
        BattleTileData.Load();
        BattlefieldData.Load();
        BattleGroupData.Load();
        BattleStatusData.Load();
        ItemData.Load();
        EquipData.Load();
        ItemEffectData.Load();
        LanguageData.Load();
        DungeonData.Load();
        RoomData.Load();
        TreasureData.Load();
        ConversationData.Load();
        ShopData.Load();
        DungeonGroupData.Load();
        ExpData.Load();
        NewCookData.Load();

        yield return(new WaitForEndOfFrame());

        InitManager();

        MySceneManager.Instance.Load();

#if UNITY_EDITOR
        DebugCommand.Start();
#endif
    }
Beispiel #2
0
        private async void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            await Task.Delay(300);

            await ConversationData.Load(Path, (s, ev) => {
                ParseName.Text = "Parsing conversation: " + s;
            });

            GraphGrid.Children.Add(new GraphView(Conversation.GenerateOverall()));
            Navigation.FadeOut(LoadingCover, () => {
                ((Grid)LoadingCover.Parent).Children.Remove(LoadingCover);
            });
            foreach (var item in ConversationData.Conversations)
            {
                var i = new ConversationItem(item.Name);
                i.MouseLeftButtonUp += (s, ev) => {
                    GraphGrid.Children.Clear();
                    CurrentPersonName.Text = item.Name;
                    GraphGrid.Children.Add(new GraphView(item.GenerateData()));
                };
                ConversationStackPanel.Children.Add(i);
                searchPatterns.Add(item.Name.ToLower());
            }
        }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     ConversationData.Load();
     ConversationUI.Open(1, true);
 }