ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2024ǯ05·î27Æü(·î) 10:26:32ÍúÎò
¡¡³ÍÆÀ¤·¤¿·Ð¸³ÃͤÎÎ̤ˤè¤Ã¤Æ¤ÏÊ£¿ô²ó¤Î¥ì¥Ù¥ë¥¢¥Ã¥×¤¬È¯À¸¤¹¤ë²ÄǽÀ¤â¤¢¤ë¤¿¤á¡¢
¤½¤¦¤¤¤Ã¤¿¥±¡¼¥¹¤Ë¤âÂбþ¤·¤¿¥¢¥×¥í¡¼¥ÁÊýË¡¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡·Ð¸³Ãͤβû»ÍѤΥ᥽¥Ã¥É¤Î¸Æ¤Ó½Ð¤·½èÍý¤Î¼ÂÁõ¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¥×¥ì¥¤¥ä¡¼Â¦¤Ë¼ÂÁõ¤¹¤ëÊýË¡¤È¡¢Å¨Â¦¤Ë¼ÂÁõ¤¹¤ëÊýË¡¤Î£²¤Ä¤Î¥¢¥×¥í¡¼¥ÁÊýË¡¤¬¹Í¤¨¤é¤ì¤Þ¤¹¡£
¡¡
/// <summary> /// EnemyBase ¤ÎŨ¤Î Hp ¤¬ 0 ¤Ë¤Ê¤Ã¤¿¤È¤¤Ë¼Â¹Ô¤µ¤ì¤ë /// </summary> /// <param name="exp"></param> public async void AddExpToActivePets(int exp) { // ·Ð¸³ÃͤËÂФ¹¤ë·¸¿ô¤ò»»½Ð¤·¡¢¥Ú¥Ã¥È¤Î·Ð¸³Ãͤòµá¤á¤ë(¸½ºß¤Ï¥×¥ì¥¤¥ä¡¼¤Î³ÍÆÀÃͤΠ30¡ó) int percentage = TitleDataManager.instance.ContentControllerMasterData.pet_exp_rate; double petExp = exp * (percentage / 100.0); Debug.Log($"¥Ú¥Ã¥È¤Î³ÍÆÀ·Ð¸³ÃÍ : {(int)petExp}"); for (int i = 0; i < summonPets.Length; i++) { // ¾¤´Ãæ¤Î¥Ú¥Ã¥È¤Î¾ì¹ç if (summonPets[i] != null) { // ·Ð¸³ÃͲû»¤·¡¢¥ì¥Ù¥ë¥¢¥Ã¥×Í̵¤ò¤â¤é¤¦ bool isLevelUp = await PetLevelManager.AddPetExp((int)petExp, summonPets[i].currentPetMasterData.pet_id); // ¥ì¥Ù¥ë¥¢¥Ã¥×¤·¤¿¾ì¹ç if (isLevelUp) { // ¥ì¥Ù¥ë¥¢¥Ã¥×¸å½èÍý(Hp Á´²óÉü¡¢¥¨¥Õ¥§¥¯¥È) ProcessAfterLevelUp(i, summonPets[i]); } } } } /// <summary> /// ¥ì¥Ù¥ë¥¢¥Ã¥×¸å½èÍý(Hp Á´²óÉü¡¢¥¨¥Õ¥§¥¯¥È) /// </summary> /// <param name="buttonIndex"></param> /// <param name="pet"></param> public void ProcessAfterLevelUp(int buttonIndex, Pet pet) { // Hp Á´²óÉü pet.HealLife(pet.MaxHp); // ¥¨¥Õ¥§¥¯¥ÈºÆÀ¸¤Î½àÈ÷ PrepareLevelUpPetEffect(buttonIndex, pet); } /// <summary> /// ¥¨¥Õ¥§¥¯¥ÈºÆÀ¸¤Î½àÈ÷ /// </summary> /// <param name="buttonIndex"></param> /// <param name="pet"></param> public void PrepareLevelUpPetEffect(int buttonIndex, Pet pet) { // ¥ª¥Ö¥¸¥§¥¯¥È¥×¡¼¥ë¤«¤é¥ì¥Ù¥ë¥¢¥Ã¥×ÍѤΥ¨¥Õ¥§¥¯¥È¤ò¼è¤ê½Ð¤· (EffectPlayerBase levelUpEffect, float duraion) = EffectManager.instance.GetEffect(ConstData.PET_LEVEL_UP_EFFECT_INDEX); // ¥¨¥Õ¥§¥¯¥È¤òɽ¼¨¤¹¤ë°ÌÃÖ¤òÄ´À° Vector3 effectPos = new(0, ConstData.LEVEL_UP_EFFECT_START_POS_Y, 0); // ¥Ú¥Ã¥È¤Î¾å¤ÇºÆÀ¸ levelUpEffect.PlayEffect(duraion, pet.transform.position + effectPos, token).Forget(); // PetButtonManager ¦¤Ë¤Æ¹ØÆɤ·¤Æ¤¤¤ë OnLevelUpPet ¤Ø buttonIndex ¤òÄÌÃΤ·¡¢¥Ú¥Ã¥È¤Î¥Ü¥¿¥ó¤Î¾å¤Ë¤â¥¨¥Õ¥§¥¯¥È¤ò½Ð¤¹ OnLevelUpPet.OnNext(buttonIndex); }
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯