예제 #1
0
        public virtual void UnlockModule()
        {
            ShopManager shopManager = ShopManager.Instance;

            if (PlayerModulesToUnlock.Count > 0)
            {
                foreach (PlayerModule module in PlayerModulesToUnlock)
                {
                    shopManager.UnlockPlayerModule(module, 0);
                }
            }
            else if (ModuleToUnlock != null)
            {
                Debug.Log(ModuleToUnlock.Weapon);
                ModuleToUnlock.Weapon.AddModuleShop(ModuleToUnlock, MaxLvl);
            }
            else if (PlayerModule != null)
            {
                shopManager.UnlockPlayerModule(PlayerModule, MaxLvl);
            }
        }