TutorialOpenObject.cs 843 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using UnityEngine;
  3. public class TutorialOpenObject : MonoBehaviour
  4. {
  5. private void Start()
  6. {
  7. if (this.isChangeShortCutHelp)
  8. {
  9. SystemShortcut sysShortcut = GameMain.Instance.SysShortcut;
  10. sysShortcut.strSceneHelpName = this.strSceneHelpName;
  11. }
  12. try
  13. {
  14. if (!uGUITutorialPanel.IsOpened())
  15. {
  16. uGUITutorialPanel.OpenTutorial(this.strTutorialName, null, false);
  17. }
  18. }
  19. catch (Exception ex)
  20. {
  21. Debug.LogError(ex.Message);
  22. }
  23. base.gameObject.SetActive(false);
  24. }
  25. [SerializeField]
  26. [Header("開くチュートリアル名")]
  27. public string strTutorialName = string.Empty;
  28. [SerializeField]
  29. [Header("シーンのヘルプの名称")]
  30. public string strSceneHelpName = string.Empty;
  31. [SerializeField]
  32. [Header("シーンのヘルプの上書きを有効化")]
  33. public bool isChangeShortCutHelp;
  34. }