Exemplo n.º 1
0
    static void InitData_WarTipInfo()
    {
        warTipArr.Clear();

        string filePath = Application.persistentDataPath + "/Data/TipTab.txt";

        List <WarTipData> temArr = ReflectionAssignment.LoadAndResolveData <WarTipData> (filePath);

        for (int i = 0; i < temArr.Count; i++)
        {
            WarTipData oneTem = temArr [i];
            if (oneTem != null)
            {
                warTipArr.Add(oneTem);
            }
        }
        if (temArr.Count == 0)
        {
            Debuger.LogError("TipTab.txt no content ");
        }
    }
Exemplo n.º 2
0
 public WarTipStruct(WarTipData onetip)
 {
     data = onetip;
 }