Beispiel #1
0
        private static void GetPerk()
        {
            EditorDBManager.Init();

            perkList = EditorDBManager.GetPerkList();

            if (Application.isPlaying)
            {
                return;
            }

            List <int> perkIDList = EditorDBManager.GetPerkIDList();

            for (int i = 0; i < instance.unavailableIDList.Count; i++)
            {
                if (!perkIDList.Contains(instance.unavailableIDList[i]))
                {
                    instance.unavailableIDList.RemoveAt(i); i -= 1;
                }
            }
        }