//Playing the conversation public void StartConversation() { //Debug.Log(GameManager.instance.playerStartConversation); //Check if player started the conversation and out this conversation of this npc //Player is in the conversation GameManager.instance.conversation.SetActive(true); GameManager.instance.playerStartConversation = true; //Get the Multiple-Choice Manager Script MCManager conversation = GameObject.FindGameObjectWithTag("Conversation").GetComponent <MCManager>() as MCManager; if (conversation == null) { Debug.Log("conversation not found"); return; } //The Multiple-Choice will begin the conversation with this npc and player conversation.BeginConversation(this); enabled = false; }
public void Start(MCManager.MainWindow mainwnd) { #region Visuals mainwnd.AddTab("FTB"); ListView listView_FTB_modpacks = new ListView(); ComboBox comboBox_FTB_version = new ComboBox(); Button button_FTB_start = new Button(); TextBox textBox_FTB_packContent = new TextBox(); mainwnd.Controls.Add(listView_FTB_modpacks); mainwnd.Controls.Add(comboBox_FTB_version); mainwnd.Controls.Add(button_FTB_start); mainwnd.Controls.Add(textBox_FTB_packContent); mainwnd.GetTab("FTB").Controls.Add(listView_FTB_modpacks); mainwnd.GetTab("FTB").Controls.Add(comboBox_FTB_version); mainwnd.GetTab("FTB").Controls.Add(button_FTB_start); mainwnd.GetTab("FTB").Controls.Add(textBox_FTB_packContent); // // listView_FTB_modpacks // listView_FTB_modpacks.Location = new System.Drawing.Point(8, 3); listView_FTB_modpacks.Name = "listView_FTB_modpacks"; listView_FTB_modpacks.Size = new System.Drawing.Size(197, 324); listView_FTB_modpacks.TabIndex = 0; listView_FTB_modpacks.UseCompatibleStateImageBehavior = false; listView_FTB_modpacks.SelectedIndexChanged += new EventHandler(SelectedModChanged); // // comboBox_version // comboBox_FTB_version.FormattingEnabled = true; comboBox_FTB_version.Location = new System.Drawing.Point(211, 3); comboBox_FTB_version.Name = "comboBox_version"; comboBox_FTB_version.Size = new System.Drawing.Size(80, 21); comboBox_FTB_version.TabIndex = 1; // // button_start // button_FTB_start.Location = new System.Drawing.Point(297, 3); button_FTB_start.Name = "button_start"; button_FTB_start.Size = new System.Drawing.Size(75, 21); button_FTB_start.TabIndex = 2; button_FTB_start.Text = "button3"; button_FTB_start.UseVisualStyleBackColor = true; button_FTB_start.Click += new EventHandler(FTB_Start); // // textBox_packContent // textBox_FTB_packContent.Location = new System.Drawing.Point(211, 30); textBox_FTB_packContent.Multiline = true; textBox_FTB_packContent.Name = "textBox_packContent"; textBox_FTB_packContent.Size = new System.Drawing.Size(161, 297); textBox_FTB_packContent.TabIndex = 3; #endregion GetPackList(); }
public void Is_Playing_Tutorial() { mCManager = GameObject.Find("MCManager").GetComponent <MCManager>(); bool isON = mCManager.isTutorialMode; //if(isON == true) //{ // Assert.AreEqual(1, PlayerPrefs.GetInt("TUTORIAL_MODE")); //} if (PlayerPrefs.GetInt("TUTORIAL_MODE") == 1) { Assert.AreEqual(true, isON); } }
public void Tutorial_Test() { bool answer = false; game = new MCManager(); int isOn_Tutorial = PlayerPrefs.GetInt("TUTORIAL_MODE"); if (isOn_Tutorial == 1) { //answer = game.isTutorialMode; game.isTutorialMode = true; } //Assert.AreEqual(true, mCManager.isTutorialMode); Assert.AreEqual(true, game.isTutorialMode); //Assert.True(mCManager.isTutorialMode); }
private void Awake() { Instance = this; }