HelpDialog.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using UnityEngine;
  2. using System.Collections;
  3. public class HelpDialog : MonoBehaviour
  4. {
  5. public static HelpDialog Instance;
  6. public GameObject MainDialog;
  7. public GameObject QuestionsAnswerDialog;
  8. public GameObject HelpGame;
  9. public GameObject CondomInfo;
  10. public GameObject InfoFromSend;
  11. // Use this for initialization
  12. void Start ()
  13. {
  14. Instance = this;
  15. }
  16. // Update is called once per frame
  17. void OnEnable () {
  18. MainDialog.SetActive(true);
  19. QuestionsAnswerDialog.SetActive(false);
  20. HelpGame.SetActive(false);
  21. CondomInfo.SetActive(false);
  22. InfoFromSend.SetActive(false);
  23. }
  24. public void QuestionEntering()
  25. {
  26. MainDialog.SetActive(false);
  27. QuestionsAnswerDialog.SetActive(true);
  28. HelpGame.SetActive(false);
  29. CondomInfo.SetActive(false);
  30. InfoFromSend.SetActive(false);
  31. }
  32. public void HelpEntering()
  33. {
  34. MainDialog.SetActive(false);
  35. QuestionsAnswerDialog.SetActive(false);
  36. HelpGame.SetActive(true);
  37. CondomInfo.SetActive(false);
  38. InfoFromSend.SetActive(false);
  39. }
  40. public void CondomInfoEntering()
  41. {
  42. MainDialog.SetActive(false);
  43. QuestionsAnswerDialog.SetActive(false);
  44. HelpGame.SetActive(false);
  45. CondomInfo.SetActive(true);
  46. InfoFromSend.SetActive(false);
  47. }
  48. public void MainDialogEntering()
  49. {
  50. MainDialog.SetActive(true);
  51. QuestionsAnswerDialog.SetActive(false);
  52. HelpGame.SetActive(false);
  53. CondomInfo.SetActive(false);
  54. InfoFromSend.SetActive(false);
  55. }
  56. public void InfoFromSendEntering()
  57. {
  58. MainDialog.SetActive(false);
  59. QuestionsAnswerDialog.SetActive(false);
  60. HelpGame.SetActive(false);
  61. CondomInfo.SetActive(false);
  62. InfoFromSend.SetActive(true);
  63. }
  64. }