This commit is contained in:
YL 2025-04-16 17:44:16 +08:00
parent caad9f803c
commit 1e182b7d89
2 changed files with 0 additions and 70 deletions

View File

@ -1,68 +0,0 @@
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using TEngine;
namespace GameLogic
{
[Window(UILayer.UI)]
class UISnackWindow : UIWindow
{
#region
private GameObject m_goSocre_01;
private GameObject m_goSocre_02;
private GameObject m_goSocre_03;
private GameObject m_goSocre_04;
private GameObject m_goSocre_05;
private GameObject m_goSocre_06;
private GameObject m_goSocre_07;
private GameObject m_goSocre_08;
private GameObject m_goSocre_09;
private GameObject m_goSocre_10;
private Button m_btnPlay;
private Text m_textStart;
private Text m_textLeft;
private Text m_textRight;
private Button m_btnLeft;
private Button m_btnRight;
protected override void ScriptGenerator()
{
m_goSocre_01 = FindChild("Parent/Top/Score/Group/m_goSocre_01").gameObject;
m_goSocre_02 = FindChild("Parent/Top/Score/Group/m_goSocre_02").gameObject;
m_goSocre_03 = FindChild("Parent/Top/Score/Group/m_goSocre_03").gameObject;
m_goSocre_04 = FindChild("Parent/Top/Score/Group/m_goSocre_04").gameObject;
m_goSocre_05 = FindChild("Parent/Top/Score/Group/m_goSocre_05").gameObject;
m_goSocre_06 = FindChild("Parent/Top/Score/Group/m_goSocre_06").gameObject;
m_goSocre_07 = FindChild("Parent/Top/Score/Group/m_goSocre_07").gameObject;
m_goSocre_08 = FindChild("Parent/Top/Score/Group/m_goSocre_08").gameObject;
m_goSocre_09 = FindChild("Parent/Top/Score/Group/m_goSocre_09").gameObject;
m_goSocre_10 = FindChild("Parent/Top/Score/Group/m_goSocre_10").gameObject;
m_btnPlay = FindChildComponent<Button>("Parent/GameControll/Center/m_btnPlay");
m_textStart = FindChildComponent<Text>("Parent/GameControll/Center/Bottom/Tips/m_textStart");
m_textLeft = FindChildComponent<Text>("Parent/GameControll/Center/Bottom/Tips/LeftAndRight/m_textLeft");
m_textRight = FindChildComponent<Text>("Parent/GameControll/Center/Bottom/Tips/LeftAndRight/m_textRight");
m_btnLeft = FindChildComponent<Button>("Parent/GameControll/Center/Bottom/RoleControl/m_btnLeft");
m_btnRight = FindChildComponent<Button>("Parent/GameControll/Center/Bottom/RoleControl/m_btnRight");
m_btnPlay.onClick.AddListener(UniTask.UnityAction(OnClickPlayBtn));
m_btnLeft.onClick.AddListener(UniTask.UnityAction(OnClickLeftBtn));
m_btnRight.onClick.AddListener(UniTask.UnityAction(OnClickRightBtn));
}
#endregion
#region
private async UniTaskVoid OnClickPlayBtn()
{
await UniTask.Yield();
}
private async UniTaskVoid OnClickLeftBtn()
{
await UniTask.Yield();
}
private async UniTaskVoid OnClickRightBtn()
{
await UniTask.Yield();
}
#endregion
}
}

View File

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 0206186d9c4d0ec4b852c5e6271c066b