Commit 94357a0c authored by 王雪伟's avatar 王雪伟

Merge branch 'develop_mjb_cscmnq_1.0.6' of…

Merge branch 'develop_mjb_cscmnq_1.0.6' of gitlab.huolea.com:wangxuewei/wdlc_mjb_unity into develop_mjb_cscmnq_1.0.6
parents d0d64737 69cd238c
This diff is collapsed.
......@@ -216,6 +216,51 @@ public class Guide : MonoBehaviour
Step7.SetActive(true);
}
}
public void onClickStep7()
{
DissmissGuide(false);
if (PlayerPrefs.GetInt(step8Key, 0) == 0)
{
PlayerPrefs.SetInt(step8Key, 1);
Debug.Log("显示第8步");
Step8.SetActive(true);
}
}
public void onClickStep8()
{
DissmissGuide(false);
if (PlayerPrefs.GetInt(step9Key, 0) == 0)
{
PlayerPrefs.SetInt(step9Key, 1);
Debug.Log("显示第9步");
Step9.SetActive(true);
}
}
public void onClickStep9()
{
DissmissGuide(false);
if (PlayerPrefs.GetInt(step10Key, 0) == 0)
{
PlayerPrefs.SetInt(step10Key, 1);
Debug.Log("显示第10步");
Step10.SetActive(true);
}
}
public void onClickStep10()
{
DissmissGuide(false);
if (PlayerPrefs.GetInt(step11Key, 0) == 0)
{
PlayerPrefs.SetInt(step11Key, 1);
Debug.Log("显示第11步");
Step11.SetActive(true);
}
}
public void onClickStep11()
{
DissmissGuide(false);
}
//public void onClickStep6()
//{
// Debug.Log("点击第6步");
......
......@@ -514,17 +514,21 @@ public class DialogControl : MonoBehaviour
//关闭获取钻石弹窗
public void closeDiamondDialog()
{
AudioUtils.ins.PlayBtnAudio();
DiamondDialog.SetActive(false);
diamondcontent.transform.localPosition -= new Vector3(0, 340, 0);
AdUtils.closeFeedAd();
if (DiamondDialog.activeSelf)
{
AudioUtils.ins.PlayBtnAudio();
DiamondDialog.SetActive(false);
diamondcontent.transform.localPosition -= new Vector3(0, 340, 0);
AdUtils.closeFeedAd();
}
}
//获取钻石奖励
public void getDiamondReward()
{
//closeDiamondDialog();
closeDiamondDialog();
AudioUtils.ins.PlayBtnAudio();
EventUtils.OnEvent("addDiamond_click", "点击钻石加号");
HttpTool.Instance._Get("app/v1/wdlc/reward/diamond_by_video_status", null, new Action<DiamondStatusBean>((bean) =>
......
......@@ -708,7 +708,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
public void DidSelectedShiwujiangli()
{
AudioUtils.ins.PlayBtnAudio();
Guide.guide.onClickStep7();
EventUtils.OnEvent("click_wodelibao", "点击我的礼包");
if (RealAwardsVM.dataModel != null)
......
......@@ -13,14 +13,14 @@ public class PlantTreeControl : MonoBehaviour
{
clickone();
}
//private void Awake()
//{
// EventCenter.AddListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData);
//}
//private void OnDestroy()
//{
// EventCenter.RemoveListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData);
//}
private void Awake()
{
EventCenter.AddListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData);
}
private void OnDestroy()
{
EventCenter.RemoveListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData);
}
//void Start()
//{
// // getWithDrawData();
......
......@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries:
- m_Id: main
m_Name:
m_Url: https://packages.unity.com
m_Url: https://packages.unity.cn
m_Scopes: []
m_IsDefault: 1
m_UserSelectedRegistryName:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment