This commit is contained in:
kridoo
2025-11-04 13:56:54 +08:00
parent 1a8de3a14a
commit 434fc18578
30 changed files with 29690 additions and 24699 deletions

View File

@@ -17,44 +17,52 @@ public class NengNiangQiuCtr : MonoBehaviour
GlobalEventMgr.Listen<bool, int, int>(GameEvent.EventRayQuadOk, GameDataManage_EventRayQuadOk);
GlobalEventMgr.Listen<int>(GameEvent.EventHandRelease, GameDataManage_EventHandRelease);
GlobalEventMgr.Listen(GameEvent.EventHideCatchFont, GameDataManage_EventHideCatchFont);
}
// Update is called once per frame
void GameDataManage_EventRayQuadOk(bool isCatchOk, int handType, int fontIndex)
{
_handType = handType;
_fontIndex = fontIndex;
if (_handType == 1)
if (!SceneMgr.Instance.isTrigger)
{
nengniangquObj_L.SetActive(true);
}
else
{
nengniangquObj_R.SetActive(true);
_handType = handType;
_fontIndex = fontIndex;
if (_handType == 1)
{
nengniangquObj_L.SetActive(true);
}
else
{
nengniangquObj_R.SetActive(true);
}
}
}
void GameDataManage_EventHandRelease(int handType)
{
if (handType == 1)
if (!SceneMgr.Instance.isTrigger)
{
if (nengniangquObj_L.activeSelf)
if (handType == 1)
{
nengniangquObj_L.SetActive(false);
//<2F><><EFBFBD>ֵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
GlobalEventMgr.Dispatch(GameEvent.EventShowCatchFont, true, _handType, _fontIndex);//1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
}
else
{
if (nengniangquObj_R.activeSelf)
{
nengniangquObj_R.SetActive(false);
//<2F><><EFBFBD>ֵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
GlobalEventMgr.Dispatch(GameEvent.EventShowCatchFont, true, _handType, _fontIndex);//2:<3A><><EFBFBD><EFBFBD>
if (nengniangquObj_L.activeSelf)
{
nengniangquObj_L.SetActive(false);
//<2F><><EFBFBD>ֵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
GlobalEventMgr.Dispatch(GameEvent.EventShowCatchFont, true, _handType, _fontIndex);//1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
}
else
{
if (nengniangquObj_R.activeSelf)
{
nengniangquObj_R.SetActive(false);
//<2F><><EFBFBD>ֵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
GlobalEventMgr.Dispatch(GameEvent.EventShowCatchFont, true, _handType, _fontIndex);//2:<3A><><EFBFBD><EFBFBD>
}
}
}
}
void GameDataManage_EventHideCatchFont()