public void ActivateTutorial(GameObject o) { // GameManager.inst.SetScrollTop(); tutorialActive = true; openTutorialButton.SetActive(false); LevelBuilder.inst.ShowLevelBuilder(); o.SetActive(true); currentTutorial = o.GetComponent <UIInstructionsHelper>(); currentTutorial.Init(); }
public void EndInstructionMode() { tutorialActive = false; foreach (GameObject o in tutorial_create) { o.SetActive(false); } openTutorialButton.SetActive(true); currentTutorial = null; HoverHelperManager.inst.HideHoverHelp(); restrictInputBig.SetActive(false); restrictInputSmall.SetActive(false); // hoverParent.SetActive(false); // gameObject.SetActive(false); foreach (DetectMouseClickUI dui in FindObjectsOfType <DetectMouseClickUI>()) { Destroy(dui); } }