Example #1
0
    private void PrintWeaponData()
    {
        WeaponDatabase weaponDatabase = m_databaseManager.GetDatabase <WeaponDatabase>();
        WeaponData     weaponData     = null;

        for (int cnt = 1; cnt < weaponDatabase.GetCount(); cnt++)
        {
            weaponData = weaponDatabase.GetDataByKey(cnt.ToString());

            Debug.Log(string.Format("MonsterData_{0} : Key = {1}, Name = {2}",
                                    cnt, weaponData.Key, weaponData.Name));

            for (int lv = 0; lv < weaponData.Atk.Length; lv++)
            {
                Debug.Log(string.Format("Lv.{0}, Atk = {1}", lv + 1, weaponData.Atk[lv]));
            }

            for (int lv = 0; lv < weaponData.Rarity.Length; lv++)
            {
                Debug.Log(string.Format("Lv.{0}, Rarity = {1}", lv + 1, weaponData.Rarity[lv]));
            }
        }
    }