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); } }