12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using UnityEngine;
- using System.Collections;
- public class HelpDialog : MonoBehaviour
- {
- public static HelpDialog Instance;
- public GameObject MainDialog;
- public GameObject QuestionsAnswerDialog;
- public GameObject HelpGame;
- public GameObject CondomInfo;
- public GameObject InfoFromSend;
- // Use this for initialization
- void Start ()
- {
- Instance = this;
- }
-
- // Update is called once per frame
- void OnEnable () {
- MainDialog.SetActive(true);
- QuestionsAnswerDialog.SetActive(false);
- HelpGame.SetActive(false);
- CondomInfo.SetActive(false);
- InfoFromSend.SetActive(false);
- }
- public void QuestionEntering()
- {
- MainDialog.SetActive(false);
- QuestionsAnswerDialog.SetActive(true);
- HelpGame.SetActive(false);
- CondomInfo.SetActive(false);
- InfoFromSend.SetActive(false);
- }
- public void HelpEntering()
- {
- MainDialog.SetActive(false);
- QuestionsAnswerDialog.SetActive(false);
- HelpGame.SetActive(true);
- CondomInfo.SetActive(false);
- InfoFromSend.SetActive(false);
- }
- public void CondomInfoEntering()
- {
- MainDialog.SetActive(false);
- QuestionsAnswerDialog.SetActive(false);
- HelpGame.SetActive(false);
- CondomInfo.SetActive(true);
- InfoFromSend.SetActive(false);
- }
- public void MainDialogEntering()
- {
- MainDialog.SetActive(true);
- QuestionsAnswerDialog.SetActive(false);
- HelpGame.SetActive(false);
- CondomInfo.SetActive(false);
- InfoFromSend.SetActive(false);
- }
- public void InfoFromSendEntering()
- {
- MainDialog.SetActive(false);
- QuestionsAnswerDialog.SetActive(false);
- HelpGame.SetActive(false);
- CondomInfo.SetActive(false);
- InfoFromSend.SetActive(true);
- }
- }
|