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 ...@@ -216,6 +216,51 @@ public class Guide : MonoBehaviour
Step7.SetActive(true); 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() //public void onClickStep6()
//{ //{
// Debug.Log("点击第6步"); // Debug.Log("点击第6步");
......
...@@ -514,17 +514,21 @@ public class DialogControl : MonoBehaviour ...@@ -514,17 +514,21 @@ public class DialogControl : MonoBehaviour
//关闭获取钻石弹窗 //关闭获取钻石弹窗
public void closeDiamondDialog() public void closeDiamondDialog()
{ {
if (DiamondDialog.activeSelf)
AudioUtils.ins.PlayBtnAudio(); {
DiamondDialog.SetActive(false); AudioUtils.ins.PlayBtnAudio();
diamondcontent.transform.localPosition -= new Vector3(0, 340, 0); DiamondDialog.SetActive(false);
AdUtils.closeFeedAd(); diamondcontent.transform.localPosition -= new Vector3(0, 340, 0);
AdUtils.closeFeedAd();
}
} }
//获取钻石奖励 //获取钻石奖励
public void getDiamondReward() public void getDiamondReward()
{ {
//closeDiamondDialog(); //closeDiamondDialog();
closeDiamondDialog();
AudioUtils.ins.PlayBtnAudio(); AudioUtils.ins.PlayBtnAudio();
EventUtils.OnEvent("addDiamond_click", "点击钻石加号"); EventUtils.OnEvent("addDiamond_click", "点击钻石加号");
HttpTool.Instance._Get("app/v1/wdlc/reward/diamond_by_video_status", null, new Action<DiamondStatusBean>((bean) => 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 ...@@ -708,7 +708,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
public void DidSelectedShiwujiangli() public void DidSelectedShiwujiangli()
{ {
AudioUtils.ins.PlayBtnAudio(); AudioUtils.ins.PlayBtnAudio();
Guide.guide.onClickStep7();
EventUtils.OnEvent("click_wodelibao", "点击我的礼包"); EventUtils.OnEvent("click_wodelibao", "点击我的礼包");
if (RealAwardsVM.dataModel != null) if (RealAwardsVM.dataModel != null)
......
...@@ -13,14 +13,14 @@ public class PlantTreeControl : MonoBehaviour ...@@ -13,14 +13,14 @@ public class PlantTreeControl : MonoBehaviour
{ {
clickone(); clickone();
} }
//private void Awake() private void Awake()
//{ {
// EventCenter.AddListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData); EventCenter.AddListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData);
//} }
//private void OnDestroy() private void OnDestroy()
//{ {
// EventCenter.RemoveListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData); EventCenter.RemoveListener(MyEventType.RefreshPlantTreeWithDraw, getWithDrawData);
//} }
//void Start() //void Start()
//{ //{
// // getWithDrawData(); // // getWithDrawData();
......
...@@ -17,7 +17,7 @@ MonoBehaviour: ...@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries: m_Registries:
- m_Id: main - m_Id: main
m_Name: m_Name:
m_Url: https://packages.unity.com m_Url: https://packages.unity.cn
m_Scopes: [] m_Scopes: []
m_IsDefault: 1 m_IsDefault: 1
m_UserSelectedRegistryName: 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