|
@@ -107,11 +107,17 @@ namespace Fort23.Mono
|
|
|
PlayEventCompletedEfx();
|
|
PlayEventCompletedEfx();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ TimerEntity _timerEntity = null;
|
|
|
|
|
+
|
|
|
private void CompleteEvent(IEventData e)
|
|
private void CompleteEvent(IEventData e)
|
|
|
{
|
|
{
|
|
|
|
|
+ _timerEntity?.Dispose();
|
|
|
|
|
+ _timerEntity = null;
|
|
|
PlayEventCompletedEfx();
|
|
PlayEventCompletedEfx();
|
|
|
fx_ui_renwu_chuxian.gameObject.SetActive(true);
|
|
fx_ui_renwu_chuxian.gameObject.SetActive(true);
|
|
|
fx_ui_renwu_chuxian.Play();
|
|
fx_ui_renwu_chuxian.Play();
|
|
|
|
|
+ _timerEntity =
|
|
|
|
|
+ TimerComponent.Instance.AddTimer(400, () => { fx_ui_renwu_chuxian.gameObject.SetActive(false); });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void UpdateDaoYouCoun()
|
|
public void UpdateDaoYouCoun()
|
|
@@ -324,8 +330,20 @@ namespace Fort23.Mono
|
|
|
fx_ui_renwu_wancheng_loop.gameObject.SetActive(true);
|
|
fx_ui_renwu_wancheng_loop.gameObject.SetActive(true);
|
|
|
fx_ui_renwu_wancheng_loop.Play();
|
|
fx_ui_renwu_wancheng_loop.Play();
|
|
|
}
|
|
}
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ fx_ui_renwu_wancheng_loop.gameObject.SetActive(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ fx_ui_renwu_wancheng_loop.gameObject.SetActive(false);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ fx_ui_renwu_wancheng_loop.gameObject.SetActive(false);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|