예제 #1
0
        private static void GetWeapon()
        {
            EditorDBManager.Init();

            weaponList = EditorDBManager.GetFPSWeaponList();

            if (Application.isPlaying)
            {
                return;
            }

            List <int> weaponIDList = EditorDBManager.GetFPSWeaponIDList();

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