|
@@ -114,11 +114,7 @@ public class NewUserGuider : MonoBehaviour
|
|
|
frameTip.GetComponentInChildren<Text>().text = config.frameTipText;
|
|
frameTip.GetComponentInChildren<Text>().text = config.frameTipText;
|
|
|
frameTip.gameObject.SetActive(true);
|
|
frameTip.gameObject.SetActive(true);
|
|
|
|
|
|
|
|
- GetMaskClickedEvent().AddListener(() => {
|
|
|
|
|
- if (clickedWillPlayAudioBtn) AudioMgr.ins?.PlayBtn();
|
|
|
|
|
- Destroy(gameObject);
|
|
|
|
|
- NewUserGuiderManager.ins?.OnClickedDestroyed(config.key);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ GetMaskClickedEvent().AddListener(OnClick_ToNext);
|
|
|
|
|
|
|
|
config.onStart?.Invoke(this);
|
|
config.onStart?.Invoke(this);
|
|
|
}
|
|
}
|
|
@@ -130,11 +126,26 @@ public class NewUserGuider : MonoBehaviour
|
|
|
NewUserGuiderManager.ins.OnSkip();
|
|
NewUserGuiderManager.ins.OnSkip();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void OnClick_ToNext()
|
|
|
|
|
+ {
|
|
|
|
|
+ if (clickedWillPlayAudioBtn) AudioMgr.ins?.PlayBtn();
|
|
|
|
|
+ Destroy(gameObject);
|
|
|
|
|
+ NewUserGuiderManager.ins?.OnClickedDestroyed(config.key);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public Button.ButtonClickedEvent GetMaskClickedEvent()
|
|
public Button.ButtonClickedEvent GetMaskClickedEvent()
|
|
|
{
|
|
{
|
|
|
return hollowOutMask.GetComponent<Button>().onClick;
|
|
return hollowOutMask.GetComponent<Button>().onClick;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ NewUserGuiderButton _newUserGuiderButton;
|
|
|
|
|
+ public NewUserGuiderButton GetNewUserGuiderButton() {
|
|
|
|
|
+ if (_newUserGuiderButton == null) {
|
|
|
|
|
+ _newUserGuiderButton = hollowOutMask.gameObject.AddComponent<NewUserGuiderButton>();
|
|
|
|
|
+ }
|
|
|
|
|
+ return _newUserGuiderButton;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void SetIconPointerHitOpacity(float opacity)
|
|
public void SetIconPointerHitOpacity(float opacity)
|
|
|
{
|
|
{
|
|
|
Image img = iconPointerHit.GetComponent<Image>();
|
|
Image img = iconPointerHit.GetComponent<Image>();
|