Beispiel #1
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        instance = this;

        DontDestroyOnLoad(gameObject);
        string filepath = Application.dataPath + "/rune31/Scripts/GameData/" + "Equipment.json";
        string jsons    = File.ReadAllText(filepath);

        totalPool = JsonConvert.DeserializeObject <_Equipments>(jsons).Equipment;
    }
Beispiel #2
0
    void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        instance = this;

        totalPool = EqpTotalPool.instance;

        avaPool =
            (from item in totalPool.totalPool
             where (item.collection == "Base" & item.collection == "UnLock")
             select item).ToList();
    }