//显示或关闭读条界面方法,在需要场景切换时调用此方法跳转到读条界面以及切换完成时销毁此界面 public void ShowLoadingCanvas(bool m_Show, bool m_ShowImage) { if (m_Show) { EZComponent.AddConment <UILoading>(); EZComponent.GetConment <UILoading>().ShowImage(m_ShowImage); } else { EZComponent.RemoveConment <UILoading>(); } }
//增加钻石 private void AddDiamondMethod() { SafetyCutOff(); Debug.Log("增加钻石"); if (EZComponent.GetConment <Game_ShopPing>() != null) { EZComponent.GetConment <Game_ShopPing>().DiamondToggle.isOn = true; //导航到金币 } else { if (EZComponent.GetConment <Game_Lobby>() != null) { EZComponent.RemoveConment <Game_Lobby>(); } EZComponent.AddConment <Game_ShopPing>(); //导航到金币 EZComponent.GetConment <Game_ShopPing>().DiamondToggle.isOn = true; } }
void CloseMethod() { EZComponent.RemoveConment <Game_MagicBox>(); EZComponent.AddConment <Game_Lobby>(); }
//设置 private void SetupMethod() { EZComponent.AddConment <Game_Setup>(); }
//实名认证 private void CertidicationMethod() { EZComponent.AddConment <Game_RealName>(); }
/// <summary> /// 创建房间 /// </summary> void CreateaRoomGameMethod() { EZComponent.AddConment <Game_Prepare>(); EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.CreareaRoomGame); }
/// <summary> /// 在线匹配 /// </summary> void NetWorkingGameMethod() { EZComponent.AddConment <Game_Prepare>(); EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.NetWorKingGame); }
//盲盒的点击事件 private void LuckyBoxMethod() { Debug.Log("盲盒的点击事件"); EZComponent.AddConment <Game_MagicBox>(); EZComponent.RemoveConment <Game_Lobby>(); }
//背包的点击事件 private void KnapSackMethod() { Debug.Log("背包的点击事件"); EZComponent.AddConment <Game_Knapsack>(); EZComponent.RemoveConment <Game_Lobby>(); }
void CloseMethod() { EZComponent.RemoveConment <Game_Knapsack>(); EZComponent.AddConment <Game_Lobby>(); }
//退出商城的方法 private void CloseMethod() { EZComponent.RemoveConment <Game_ShopPing>(); EZComponent.AddConment <Game_Lobby>(); }
private void Start() { EZComponent.AddConment <Game_Lobby>(); EZComponent.AddConment <Game_Head>(); EZComponent.AddConment <Game_Single>(); }
void Close() { EZComponent.AddConment <Game_Lobby>(); EZComponent.RemoveConment <Game_Task>(); }
void Close() { EZComponent.AddConment <Game_Lobby>(); EZComponent.RemoveConment <Game_Ranking>(); }
public override void Start() { thisTra = EZUIGroup.Open(this); CloseBtn = thisTra.Find("VisitorBGImage/Close").GetComponent <Button>(); EnterBtn = thisTra.Find("Enter").GetComponent <Button>(); CloseBtn.onClick.AddListener(() => { EZComponent.RemoveConment <VisitorsLogin>(); EZComponent.AddConment <MenuLogin>(); }); EnterBtn.onClick.AddListener(VisitorLogin); }
//商店的点击事件 private void RingKingMethod() { Debug.Log("排行榜的点击事件"); EZComponent.AddConment <Game_Ranking>(); EZComponent.RemoveConment <Game_Lobby>(); }
//排行榜的点击事件 private void ShopPingMethod() { Debug.Log("商店的点击事件"); EZComponent.AddConment <Game_ShopPing>(); EZComponent.RemoveConment <Game_Lobby>(); }
void CloseMatchingMethod() { EZComponent.AddConment <Game_UnifyUI>(); EZComponent.GetConment <Game_UnifyUI>().UnifyUI.LoadBeOut.isOn = true; }
//去广告的方法 private void CloseAdMobMethod() { Debug.Log("去广告的方法"); EZComponent.AddConment <Game_Abs>(); }
private void VistorLogin() { Debug.Log("Óο͵Ǽ"); EZComponent.AddConment <VisitorsLogin>(); EZComponent.RemoveConment <MenuLogin>(); }
/// <summary> /// 单机游戏 /// </summary> void SingleGameMethod() { EZComponent.AddConment <Game_Prepare>(); EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.SingleGame); }
private void OtherLogin() { Debug.Log("ÆäËû·½Ê½µÇ¼"); EZComponent.AddConment <OtherLogin>(); EZComponent.RemoveConment <MenuLogin>(); }
/// <summary> /// 好友对战 /// </summary> void FriendGameMethod() { EZComponent.AddConment <Game_Prepare>(); EZComponent.GetConment <Game_Prepare>().ContModemethod(GameModeType.FriendGame); }
//任务的点击事件 private void TaskMethod() { Debug.Log("任务的点击事件"); EZComponent.AddConment <Game_Task>(); EZComponent.RemoveConment <Game_Lobby>(); }
private void LanguageMethod() { EZComponent.AddConment <Game_Language>(); }
private void HeadImageMethod() { EZComponent.AddConment <Game_HomePage>(); EZComponent.RemoveConment <Game_Lobby>(); }
//每日礼物 private void SigninMethod() { EZComponent.AddConment <Game_Gift>(); }
private void NickNameMethod() { EZComponent.AddConment <Game_EditData>(); }
//好友的点击事件 private void FriendMethod() { Debug.Log("好友的点击事件"); EZComponent.AddConment <Game_Friend>(); EZComponent.RemoveConment <Game_Lobby>(); }
private Button FaceBookBtn; //FaceBook登录 public override void Start() { thisTra = EZUIGroup.Open(this); CloseBtn = thisTra.Find("Close").GetComponent <Button>(); QQBtn = thisTra.Find("QQ").GetComponent <Button>(); FaceBookBtn = thisTra.Find("FaceBook").GetComponent <Button>(); CloseBtn.onClick.AddListener(() => { EZComponent.RemoveConment <OtherLogin>(); EZComponent.AddConment <MenuLogin>(); }); QQBtn.onClick.AddListener(QQLogin); FaceBookBtn.onClick.AddListener(FaceBookLogin); }