修改层级后无法显示BUG前备份提交
This commit is contained in:
parent
be07fb68e7
commit
88e8f4a0ee
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -33,7 +33,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(1, 0);
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
||||
@ -31,7 +31,10 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
GameManager.Instance.uiManager.ShowUI<StartKaoHePanel>();
|
||||
GameManager.Instance.uiManager.GetUI<StartKaoHePanel>().callback = () =>
|
||||
{
|
||||
PlayVideo();
|
||||
fsm.ShowTxtQuestion(0, 3, 0, () =>
|
||||
{
|
||||
PlayVideo();
|
||||
});
|
||||
};
|
||||
//GameManager.Instance.uiManager.ShowUI<TimePanel>();
|
||||
//GameManager.Instance.uiManager.ShowUI<ScorePanel>();
|
||||
@ -48,7 +51,10 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
GameManager.Instance.transform.FindFirst("³õʼ¶¯»").gameObject.SetActive(false);
|
||||
fsm.ShowTip(0);
|
||||
fsm.nextState = true;
|
||||
fsm.ShowTxtQuestion(1, 3, 1, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(1, 0);
|
||||
fsm.AddScore(2, 0);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
||||
@ -14,41 +14,52 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
base.OnStateEnter();
|
||||
this.Log("进入测量方法状态");
|
||||
niaoDaoKou_Btn = GameManager.Instance.transform.FindFirst<Button>("尿道口按钮");
|
||||
niaoDaoKou_Btn.onClick.RemoveAllListeners();
|
||||
zuoGu_Btn = GameManager.Instance.transform.FindFirst<Button>("坐骨结节按钮");
|
||||
zuoGu_Btn.onClick.RemoveAllListeners();
|
||||
fsm.ShowCamera("测量方法1_Camera");
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("测量方法1_TimeLine", () =>
|
||||
fsm.ShowTxtQuestion(2, 3, 0, () =>
|
||||
{
|
||||
fsm.ShowTip(1);
|
||||
fsm.PlayBgm(1);
|
||||
niaoDaoKou_Btn.gameObject.SetActive(true);
|
||||
niaoDaoKou_Btn.onClick.AddListener(() =>
|
||||
niaoDaoKou_Btn = GameManager.Instance.transform.FindFirst<Button>("尿道口按钮");
|
||||
niaoDaoKou_Btn.onClick.RemoveAllListeners();
|
||||
zuoGu_Btn = GameManager.Instance.transform.FindFirst<Button>("坐骨结节按钮");
|
||||
zuoGu_Btn.onClick.RemoveAllListeners();
|
||||
fsm.ShowCamera("测量方法1_Camera");
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("测量方法1_TimeLine", () =>
|
||||
{
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
fsm.ShowTip(1);
|
||||
fsm.PlayBgm(1);
|
||||
niaoDaoKou_Btn.gameObject.SetActive(true);
|
||||
niaoDaoKou_Btn.onClick.AddListener(() =>
|
||||
{
|
||||
fsm.AddScore(5, 0);
|
||||
}
|
||||
fsm.ShowCamera("测量方法2_Camera");
|
||||
niaoDaoKou_Btn.gameObject.SetActive(false);
|
||||
fsm.ShowTip(2);
|
||||
fsm.PlayBgm(2);
|
||||
cor = Game.Instance.IEnumeratorManager.Run(2.0f, () =>
|
||||
{
|
||||
zuoGu_Btn.gameObject.SetActive(true);
|
||||
zuoGu_Btn.onClick.AddListener(() =>
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 1);
|
||||
}
|
||||
fsm.ShowCamera("测量方法2_Camera");
|
||||
niaoDaoKou_Btn.gameObject.SetActive(false);
|
||||
fsm.ShowTip(2);
|
||||
fsm.PlayBgm(2);
|
||||
cor = Game.Instance.IEnumeratorManager.Run(2.0f, () =>
|
||||
{
|
||||
zuoGu_Btn.gameObject.SetActive(true);
|
||||
zuoGu_Btn.onClick.AddListener(() =>
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
zuoGu_Btn.gameObject.SetActive(false);
|
||||
fsm.PlayClip("测量方法2_TimeLine", () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(5, 2);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 2);
|
||||
}
|
||||
zuoGu_Btn.gameObject.SetActive(false);
|
||||
fsm.PlayClip("测量方法2_TimeLine", () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -52,10 +52,17 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
fsm.AddScore(10, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(10, 0);
|
||||
}
|
||||
fsm.ShowCamera("²å¹Ü2_Camera");
|
||||
fsm.PlayClip("²å¹ÜºóÅÅÄò_TimeLine", () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
fsm.ShowTxtQuestion(3, 3, 5, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,12 +23,22 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.PlayBgm(0);
|
||||
fsm.Light_EnableInteraction("20ml注射器");
|
||||
fsm.ShowArrow("点击注射器", "20ml注射器");
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("20ml注射器", true);
|
||||
fsm.ShowArrow("点击注射器", "20ml注射器", 0, 0, 5, true);
|
||||
}, 2);
|
||||
fsm.InteractionDown("20ml注射器", c =>
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(4, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.HideArrow();
|
||||
fsm.Unlight_DisableInteraction("20ml注射器");
|
||||
fsm.Hide("20ml注射器");
|
||||
@ -62,6 +72,10 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
isTui = false;
|
||||
fsm.nextState = true;
|
||||
}
|
||||
@ -69,6 +83,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideTipBtn();
|
||||
isTui = false;
|
||||
fsm.Hide("20ml注射器放置后");
|
||||
fsm.nextState = false;
|
||||
|
||||
@ -16,6 +16,13 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.ShowDragQuestion(1, 3, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
|
||||
@ -32,7 +32,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(1, 0);
|
||||
fsm.AddScore(5, 0);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
||||
@ -23,6 +23,10 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
fsm.AddScore(2, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(2, 0);
|
||||
}
|
||||
});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
|
||||
@ -13,19 +13,29 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.PlayBgm(0);
|
||||
fsm.ShowArrow("点击医用垫单", "医用垫单");
|
||||
fsm.Light_EnableInteraction("医用垫单");
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("医用垫单", true);
|
||||
fsm.ShowArrow("点击医用垫单", "医用垫单", 0, 0, 5, true);
|
||||
},2);
|
||||
fsm.InteractionDown("医用垫单", c =>
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.Unlight_DisableInteraction("医用垫单");
|
||||
fsm.Hide("医用垫单");
|
||||
fsm.HideArrow();
|
||||
fsm.ShowCamera("铺巾2_Camera");
|
||||
fsm.PlayClip("铺巾_TimeLine", () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -36,6 +46,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideTipBtn();
|
||||
fsm.Unlight_DisableInteraction("医用垫单");
|
||||
fsm.HideArrow();
|
||||
fsm.nextState = false;
|
||||
|
||||
@ -16,12 +16,22 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.ShowArrow("듐샌쪘성땍춈헷", "쪘성땍춈헷");
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("쪘성땍춈헷", true);
|
||||
fsm.ShowArrow("듐샌쪘성땍춈헷", "쪘성땍춈헷", 0, 0, 5, true);
|
||||
}, 2);
|
||||
fsm.InteractionDown("쪘성땍춈헷", c =>
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(4, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.HideArrow();
|
||||
fsm.ShowCamera("헌썅관튄왯2_Camera");
|
||||
fsm.Unlight_DisableInteraction("쪘성땍춈헷");
|
||||
@ -34,6 +44,10 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
@ -45,6 +59,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideTipBtn();
|
||||
if (null != cor)
|
||||
{
|
||||
Game.Instance.IEnumeratorManager.Stop(cor);
|
||||
|
||||
@ -15,12 +15,22 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.ShowArrow("듐샌쪘성땍춈헷", "쪘성땍춈헷");
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("쪘성땍춈헷", true);
|
||||
fsm.ShowArrow("듐샌쪘성땍춈헷", "쪘성땍춈헷", 0, 0, 5, true);
|
||||
}, 2);
|
||||
fsm.InteractionDown("쪘성땍춈헷", c =>
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(4, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.HideArrow();
|
||||
fsm.ShowCamera("헌썅쿱돛왯2_Camera");
|
||||
fsm.Unlight_DisableInteraction("쪘성땍춈헷");
|
||||
@ -33,6 +43,10 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(5, 1);
|
||||
}
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
@ -44,6 +58,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideTipBtn();
|
||||
if (null != cor)
|
||||
{
|
||||
Game.Instance.IEnumeratorManager.Stop(cor);
|
||||
|
||||
@ -13,12 +13,22 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.ShowCamera("取出导尿管1_Camera");
|
||||
fsm.Light_EnableInteraction("导尿管");
|
||||
fsm.ShowArrow("点击导尿管", "导尿管");
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("导尿管", true);
|
||||
fsm.ShowArrow("点击导尿管", "导尿管", 0, 0, 5, true);
|
||||
}, 2);
|
||||
fsm.InteractionDown("导尿管", c =>
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.HideArrow();
|
||||
fsm.Unlight_DisableInteraction("导尿管");
|
||||
fsm.Hide("打开导尿管后");
|
||||
@ -36,6 +46,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideTipBtn();
|
||||
fsm.HideArrow();
|
||||
fsm.Unlight_DisableInteraction("导尿管");
|
||||
fsm.Hide("打开导尿管后");
|
||||
|
||||
@ -33,7 +33,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(1, 0);
|
||||
fsm.AddScore(5, 0);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
||||
@ -13,12 +13,22 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.PlayBgm(0);
|
||||
fsm.Light_EnableInteraction("抗生素软膏");
|
||||
fsm.ShowArrow("点击抗生素软膏", "抗生素软膏");
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("抗生素软膏", true);
|
||||
fsm.ShowArrow("点击抗生素软膏", "抗生素软膏", 0, 0, 5, true);
|
||||
}, 2);
|
||||
fsm.InteractionDown("抗生素软膏", c =>
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.HideArrow();
|
||||
fsm.InteractionDown("抗生素软膏", null);
|
||||
fsm.Unlight_DisableInteraction("抗生素软膏");
|
||||
@ -36,6 +46,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideTipBtn();
|
||||
fsm.HideArrow();
|
||||
fsm.InteractionDown("抗生素软膏", null);
|
||||
fsm.Unlight_DisableInteraction("抗生素软膏");
|
||||
|
||||
@ -12,12 +12,24 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.Light_EnableInteraction("적뜩엥凜퀸스");
|
||||
fsm.ShowArrow("듐샌적뜩엥凜퀸스", "적뜩엥凜퀸스");
|
||||
fsm.ShowTipBtn(() =>
|
||||
{
|
||||
fsm.Light_EnableInteraction("적뜩엥凜퀸스", true);
|
||||
fsm.ShowArrow("듐샌적뜩엥凜퀸스", "적뜩엥凜퀸스", 0, 0, 5, true);
|
||||
}, 2);
|
||||
fsm.InteractionDown("적뜩엥凜퀸스", c =>
|
||||
{
|
||||
fsm.HideArrow();
|
||||
fsm.HideTipBtn();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.AddScore(3, 0);
|
||||
}
|
||||
fsm.Unlight_DisableInteraction("적뜩엥凜퀸스");
|
||||
fsm.ShowCamera("沽칩적뜩엥凜2_Camera");
|
||||
fsm.PlayClip("沽칩적뜩엥凜_TimeLine", () =>
|
||||
@ -33,6 +45,8 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.HideArrow();
|
||||
fsm.HideTipBtn();
|
||||
fsm.Unlight_DisableInteraction("적뜩엥凜퀸스");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
|
||||
@ -16,6 +16,13 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.ShowImgQuestion(0, 3, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
|
||||
@ -16,6 +16,13 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.ShowDragQuestion(0, 2, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
|
||||
@ -16,6 +16,13 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.ShowDragQuestion(0, 5, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
|
||||
@ -16,6 +16,13 @@ namespace DongWuYiXue.DaoNiaoShu
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||||
{
|
||||
fsm.ShowLineQuestion(0, 3, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user