2025-08-27 21:08:17 +00:00
|
|
|
|
using CodeJay.Enum;
|
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using DG.Tweening;
|
|
|
|
|
|
|
|
|
|
|
|
public class GamePanel_Effect : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
[SerializeField] private TMPro.TextMeshProUGUI TMP;
|
|
|
|
|
|
[SerializeField] private UnityEngine.UI.Image PlayerTurnDirectImage;
|
2025-09-09 06:15:33 +00:00
|
|
|
|
public GameObject[] gos_EffectGo;
|
|
|
|
|
|
public GameObject go_Godori, go_Ddadak, go_Be3Gwang, go_3Gwang, go_4Gwang, go_5Gwang, go_nagari, go_Bbuk, go_Stop;
|
2025-09-09 21:22:55 +00:00
|
|
|
|
public GameObject go_SSackssri, go_Kiss, go_Chodan, go_Chungdan, go_Hongdan, go_muhyo, go_jabbuk, go_eatbbuk;
|
2025-09-10 02:17:17 +00:00
|
|
|
|
public GameObject go_eatmybbuk, go_Firstbbuk, go_ChongTong, go_Shake, go_Bonus, go_SangdaeBonus;
|
2025-09-18 04:26:26 +00:00
|
|
|
|
public GameObject go_bomb, go_double, go_doubledouble;
|
2025-08-27 21:08:17 +00:00
|
|
|
|
|
|
|
|
|
|
private Dictionary<EEffectAnimationKey, int> _dictAnimTriggerHash = new Dictionary<EEffectAnimationKey, int>();
|
|
|
|
|
|
private Dictionary<EEffectDirectType, float> _dicEffectDurations = new Dictionary<EEffectDirectType, float>();
|
|
|
|
|
|
|
|
|
|
|
|
private System.Collections.IEnumerator _eDirect = null;
|
|
|
|
|
|
|
|
|
|
|
|
private void Awake()
|
|
|
|
|
|
{
|
|
|
|
|
|
for (EEffectDirectType i = 0; i < EEffectDirectType.Max; i++)
|
|
|
|
|
|
_dicEffectDurations.Add(i, 1.3f);
|
|
|
|
|
|
|
|
|
|
|
|
_dicEffectDurations[EEffectDirectType.NoneCard] = 0.5f;
|
|
|
|
|
|
_dicEffectDurations[EEffectDirectType.Normal] = 0.25f;
|
|
|
|
|
|
_dicEffectDurations[EEffectDirectType.Bonus] = 0.5f;
|
|
|
|
|
|
TMP.enabled = false;
|
|
|
|
|
|
|
|
|
|
|
|
for (EEffectAnimationKey i = 0; i < EEffectAnimationKey.Max; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
_dictAnimTriggerHash.Add(i, Animator.StringToHash(i.ToString()));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (GameManager.Instance != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
GameManager.Event.RegistEvent(EEventType.OnGameEnd, this.OnGameEnd);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void OnDestroy()
|
|
|
|
|
|
{
|
|
|
|
|
|
if (GameManager.Instance != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
GameManager.Event.RegistEvent(EEventType.OnGameEnd, this.OnGameEnd);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void OnGameEnd()
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_eDirect != null)
|
|
|
|
|
|
StopCoroutine(_eDirect);
|
|
|
|
|
|
|
|
|
|
|
|
StopAllCoroutines();
|
|
|
|
|
|
|
|
|
|
|
|
TMP.enabled = false;
|
|
|
|
|
|
|
|
|
|
|
|
if (DOTween.IsTweening(PlayerTurnDirectImage))
|
|
|
|
|
|
PlayerTurnDirectImage.DOKill();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public float GetEffectDuration(EEffectDirectType effectType)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_dicEffectDurations.ContainsKey(effectType))
|
|
|
|
|
|
return _dicEffectDurations[effectType] / GamePanel.GameSpeed;
|
|
|
|
|
|
else
|
|
|
|
|
|
return 1f / GamePanel.GameSpeed;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void PlayerTurnDirectEnabled(bool b)
|
|
|
|
|
|
{
|
|
|
|
|
|
PlayerTurnDirectImage.enabled = b;
|
|
|
|
|
|
|
|
|
|
|
|
if (b)
|
|
|
|
|
|
{
|
|
|
|
|
|
PlayerTurnDirectImage.DOColor(new Color(1, 1, 0, 1), 1f).From(new Color(1, 1, 0, 0.5f)).SetLoops(-1, LoopType.Yoyo).SetRecyclable();
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
if (DOTween.IsTweening(PlayerTurnDirectImage))
|
|
|
|
|
|
PlayerTurnDirectImage.DOKill();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public float Direct(EEffectDirectType type, bool isPlayer)
|
|
|
|
|
|
{
|
2025-09-09 21:22:55 +00:00
|
|
|
|
//TMP.text = isPlayer ? "" : "<22><><EFBFBD> ";
|
2025-08-27 21:08:17 +00:00
|
|
|
|
|
|
|
|
|
|
if (_eDirect != null)
|
|
|
|
|
|
StopCoroutine(_eDirect);
|
|
|
|
|
|
_eDirect = coroDirect(type, isPlayer);
|
|
|
|
|
|
StartCoroutine(_eDirect);
|
|
|
|
|
|
|
|
|
|
|
|
return this.GetEffectDuration(type);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEnumerator Direct(ECombinationType combinationType, bool isPlayer)
|
|
|
|
|
|
{
|
2025-09-09 06:15:33 +00:00
|
|
|
|
TMP.text = isPlayer ? "" : "<22><><EFBFBD> ";
|
2025-08-27 21:08:17 +00:00
|
|
|
|
|
|
|
|
|
|
if (_eDirect != null)
|
|
|
|
|
|
StopCoroutine(_eDirect);
|
|
|
|
|
|
EEffectDirectType type = EEffectDirectType.Max;
|
|
|
|
|
|
|
|
|
|
|
|
switch (combinationType)
|
|
|
|
|
|
{
|
|
|
|
|
|
case ECombinationType.Hongdan:
|
|
|
|
|
|
type = EEffectDirectType.Hongdan;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Chungdan:
|
|
|
|
|
|
type = EEffectDirectType.Chungdan;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Chodan:
|
|
|
|
|
|
type = EEffectDirectType.Chodan;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Godori:
|
|
|
|
|
|
type = EEffectDirectType.Godori;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Be_Three_Ghwang:
|
|
|
|
|
|
type = EEffectDirectType.Be_Three_Ghwang;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Three_Ghwang:
|
|
|
|
|
|
type = EEffectDirectType.Three_Ghwang;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Four_Ghwang:
|
|
|
|
|
|
type = EEffectDirectType.Four_Ghwang;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ECombinationType.Five_Ghwang:
|
|
|
|
|
|
type = EEffectDirectType.Five_Ghwang;
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_eDirect = coroDirect(type, isPlayer);
|
|
|
|
|
|
yield return StartCoroutine(_eDirect);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEnumerator GoDirect(int goNumber, bool isPlayer)
|
|
|
|
|
|
{
|
2025-09-09 21:22:55 +00:00
|
|
|
|
//TMP.text = isPlayer ? "" : "<22><><EFBFBD> ";
|
|
|
|
|
|
//TMP.text += goNumber.ToString() + "<22><>!";
|
2025-08-27 21:08:17 +00:00
|
|
|
|
TMP.enabled = false;
|
2025-09-09 06:15:33 +00:00
|
|
|
|
//string triggerTxt = "Go" + string.Format("{0:D2}", goNumber);
|
|
|
|
|
|
//EffectAnimator.SetTrigger(triggerTxt);
|
|
|
|
|
|
DSUtil.InActivateGameObjects(gos_EffectGo, goNumber - 1);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlayGoVoice(goNumber);
|
|
|
|
|
|
yield return new WaitForSeconds(1f);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
DSUtil.InActivateGameObjects(gos_EffectGo);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
TMP.enabled = false;
|
|
|
|
|
|
_eDirect = null;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEnumerator NagariEffect()
|
|
|
|
|
|
{
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_nagari.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
yield return new WaitForSeconds(2f);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_nagari.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
_eDirect = null;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private System.Collections.IEnumerator coroDirect(EEffectDirectType type, bool isPlayer)
|
|
|
|
|
|
{
|
|
|
|
|
|
TMP.enabled = false;
|
|
|
|
|
|
switch (type)
|
|
|
|
|
|
{
|
|
|
|
|
|
case EEffectDirectType.NoneCard:
|
|
|
|
|
|
TMP.enabled = true;
|
2025-09-09 21:22:55 +00:00
|
|
|
|
//TMP.text += "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Hongdan:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Hongdan.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Hongdan_1);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Hongdan_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Hongdan.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Chungdan:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Chungdan.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Chungdan_1);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Chungdan_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Chungdan.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Chodan:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Chodan.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Chodan_1);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Chodan_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Chodan.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Godori:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Godori.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Godori_2);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Godori_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Godori.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Be_Three_Ghwang:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Be3Gwang.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Bee_Three_Ghwang);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Be_Three_Gwhang);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Be3Gwang.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Three_Ghwang:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_3Gwang.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Three_Gwhang_1);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Samgwang_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_3Gwang.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Four_Ghwang:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_4Gwang.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Four_Ghwang);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Sagwang_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_4Gwang.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Five_Ghwang:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_5Gwang.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Five_Ghwang);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Ogwang_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_5Gwang.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.FirstBbug:
|
2025-09-09 21:22:55 +00:00
|
|
|
|
go_Firstbbuk.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Bbug_2);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Bbug_1_Voice);
|
2025-09-09 21:22:55 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Firstbbuk.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Bbug:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Bbuk.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Bbug_2);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Bbug_1_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Bbuk.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Bbug_Own:
|
2025-09-09 21:22:55 +00:00
|
|
|
|
go_jabbuk.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Bbug_2);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Bbug_1_Voice);
|
2025-09-09 21:22:55 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_jabbuk.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.GetBbug:
|
2025-09-09 21:22:55 +00:00
|
|
|
|
go_eatbbuk.SetActive(true);
|
|
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_eatbbuk.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.GetBbug_Own:
|
2025-09-09 21:22:55 +00:00
|
|
|
|
go_eatmybbuk.SetActive(true);
|
|
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_eatmybbuk.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Kiss:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Kiss.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Kiss);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Kiss_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Kiss.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Clean:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_SSackssri.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Clean_2);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Clear_Voice_1);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_SSackssri.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Bell:
|
2025-09-09 21:22:55 +00:00
|
|
|
|
go_Shake.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Shake);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Shake_Voice);
|
2025-09-09 21:22:55 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Shake.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Bomb_Double:
|
|
|
|
|
|
case EEffectDirectType.Bomb_Triple:
|
2025-09-10 09:22:58 +00:00
|
|
|
|
go_bomb.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Bomb_1);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Bomb_Voice);
|
2025-09-10 09:22:58 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_bomb.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Normal:
|
|
|
|
|
|
TMP.enabled = true;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Selectable:
|
|
|
|
|
|
TMP.enabled = true;
|
|
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Bonus:
|
|
|
|
|
|
TMP.enabled = false;
|
2025-09-10 02:17:17 +00:00
|
|
|
|
if (isPlayer == true)
|
|
|
|
|
|
go_Bonus.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
else
|
2025-09-10 02:17:17 +00:00
|
|
|
|
go_SangdaeBonus.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Bonus);
|
2025-09-10 02:17:17 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Bonus.SetActive(false);
|
|
|
|
|
|
go_SangdaeBonus.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Stop:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Stop.SetActive(false);
|
|
|
|
|
|
go_Stop.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Stop_1_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Stop.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Ddadak:
|
2025-09-09 06:15:33 +00:00
|
|
|
|
go_Ddadak.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Ddadag_1);
|
|
|
|
|
|
GameManager.Sound.PlayVoice(EVoiceType.Ddadag_Voice);
|
2025-09-09 06:15:33 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_Ddadak.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.Double:
|
2025-09-10 09:22:58 +00:00
|
|
|
|
go_double.SetActive(true);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Godori_2);
|
2025-09-10 09:22:58 +00:00
|
|
|
|
yield return new WaitForSeconds(1f);
|
2025-09-18 04:26:26 +00:00
|
|
|
|
go_double.SetActive(false);
|
|
|
|
|
|
break;
|
|
|
|
|
|
case EEffectDirectType.DoubleDouble:
|
|
|
|
|
|
go_doubledouble.SetActive(true);
|
|
|
|
|
|
GameManager.Sound.PlaySFX(ESFXType.Godori_2);
|
|
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
|
go_doubledouble.SetActive(false);
|
2025-08-27 21:08:17 +00:00
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-09 06:15:33 +00:00
|
|
|
|
//yield return new WaitForSeconds(_dicEffectDurations[type]);
|
|
|
|
|
|
//TMP.enabled = false;
|
2025-08-27 21:08:17 +00:00
|
|
|
|
_eDirect = null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|