Пример #1
0
 void Start()
 {
     //Tool_menu = GameObject.Find("ToolPanel");
     Tool_Obj1.SetActive(panel_isshow);
     Tool_Obj2.SetActive(panel_isshow);
     Tool_Obj3.SetActive(panel_isshow);
     //Calls the TaskOnClick/TaskWithParameters method when you click the Button
 }
Пример #2
0
    void Update()
    {
        if (Input.GetMouseButtonDown(0))  //如果点击了鼠标左键
        {
            TargetDialog.SetActive(true); //那就载入下一条对话

            if (dialogue_index > 0)
            {
                Tool_Obj1.SetActive(true);
                Tool_Obj2.SetActive(true);
                Tool_Obj3.SetActive(true);
            }
            dialogue_index++;
        }
    }