完善抽卡界面以及根据优化意见和功能缺失做出调整
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TcgEngine.Client;
|
||||
using TcgEngine.UI;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
@@ -19,6 +21,8 @@ namespace TcgEngine
|
||||
private HashSet<string> ability_ids = new HashSet<string>();
|
||||
private HashSet<string> deck_ids = new HashSet<string>();
|
||||
|
||||
public static Action onLoadComplete;
|
||||
|
||||
private static DataLoader instance;
|
||||
|
||||
void Awake()
|
||||
@@ -27,29 +31,27 @@ namespace TcgEngine
|
||||
LoadData();
|
||||
}
|
||||
|
||||
public void LoadData()
|
||||
private void LoadData()
|
||||
{
|
||||
//To make loading faster, add a path inside each Load() function, relative to Resources folder
|
||||
//For example CardData.Load("Cards"); to only load data inside the Resources/Cards folder
|
||||
CardData.Load();
|
||||
TeamData.Load();
|
||||
RarityData.Load();
|
||||
TraitData.Load();
|
||||
VariantData.Load();
|
||||
PackData.Load();
|
||||
LevelData.Load();
|
||||
DeckData.Load();
|
||||
AbilityData.Load();
|
||||
StatusData.Load();
|
||||
AvatarData.Load();
|
||||
CardbackData.Load();
|
||||
RewardData.Load();
|
||||
CardCoverData.Load();
|
||||
|
||||
CheckCardData();
|
||||
CheckAbilityData();
|
||||
CheckDeckData();
|
||||
CheckVariantData();
|
||||
CardData.Load();
|
||||
TeamData.Load();
|
||||
RarityData.Load();
|
||||
TraitData.Load();
|
||||
VariantData.Load();
|
||||
PackData.Load();
|
||||
LevelData.Load();
|
||||
DeckData.Load();
|
||||
AbilityData.Load();
|
||||
StatusData.Load();
|
||||
AvatarData.Load();
|
||||
CardbackData.Load();
|
||||
RewardData.Load();
|
||||
CardCoverData.Load();
|
||||
|
||||
CheckCardData();
|
||||
CheckAbilityData();
|
||||
CheckDeckData();
|
||||
CheckVariantData();
|
||||
}
|
||||
|
||||
//Make sure the data is valid
|
||||
@@ -93,7 +95,7 @@ namespace TcgEngine
|
||||
}
|
||||
}
|
||||
|
||||
//Make sure the data is valid
|
||||
// 确保数据有效
|
||||
private void CheckAbilityData()
|
||||
{
|
||||
ability_ids.Clear();
|
||||
|
||||
Reference in New Issue
Block a user