|
@@ -47,6 +47,7 @@ namespace GFGGame
|
|
|
protected override void OnHide()
|
|
|
{
|
|
|
base.OnHide();
|
|
|
+ TryCompleteGuide();
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnBack()
|
|
@@ -60,6 +61,7 @@ namespace GFGGame
|
|
|
|
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioMetalView).FullName, true)) return;
|
|
|
ViewManager.Show<StudioMetalView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
+ this.Hide();
|
|
|
}
|
|
|
private void OnCliclComFabric()
|
|
|
{
|
|
@@ -67,6 +69,8 @@ namespace GFGGame
|
|
|
|
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioFabricView).FullName, true)) return;
|
|
|
ViewManager.Show<StudioFabricView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
+ this.Hide();
|
|
|
+
|
|
|
}
|
|
|
private void OnComProperty()
|
|
|
{
|
|
@@ -74,6 +78,8 @@ namespace GFGGame
|
|
|
|
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioPropertyView).FullName, true)) return;
|
|
|
ViewManager.Show<StudioPropertyView>(new object[] { 1, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
+ this.Hide();
|
|
|
+
|
|
|
}
|
|
|
private void OnClickComFilling()
|
|
|
{
|
|
@@ -87,5 +93,12 @@ namespace GFGGame
|
|
|
GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 2);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ protected override void TryCompleteGuide()
|
|
|
+ {
|
|
|
+ GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.STUDIO_OPEN);
|
|
|
+ GuideController.TryCompleteGuideIndex(cfg.id, 2);
|
|
|
+ GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 2);
|
|
|
+ }
|
|
|
}
|
|
|
}
|