Example #1
0
 // Use this for initialization
 void Awake()
 {
     dialog1.SetActive(false);
     An1.SetActive(false);
     An2.SetActive(false);
     An3.SetActive(false);
     print(An3);
     //dialog2.SetActive(false)
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0)) //如果点击了鼠标左键
        {
            dialog1.SetActive(true);     //那就载入下一条对话

            if (dialogue_index > 0)
            {
                An1.SetActive(true);
                An2.SetActive(true);
                An3.SetActive(true);
            }
            dialogue_index++;
        }
    }
Example #3
0
 private void OnMouseEnter()
 {
     An1.GetComponent <Image>().color = Color.red;
     An2.GetComponent <Image>().color = Color.red;
     An3.GetComponent <Image>().color = Color.red;
 }