Пример #1
0
    public GameObject two;    //第二关显示
    // Use this for initialization

    void Start()
    {
        // Door_open=GameObject.Find("Door_open");
        // Door_close=GameObject.Find("Door_close");

        // Chose_open=GameObject.Find("Chose_open");
        // Chose_close=GameObject.Find("Chose_close");

        Chose_open.SetActive(false);
        Door_open.SetActive(false);
        Debug.Log("1111");
    }
Пример #2
0
    public void DoorOpen0(bool state0)
    {
        Debug.Log(0);

        if (state0 == true)
        {
            Chose_open.SetActive(true);
            Door_open.SetActive(true);
            Debug.Log(1);
            Chose_close.SetActive(false);
            Door_close.SetActive(false);
        }
        else
        {
            Chose_open.SetActive(false);
            Door_open.SetActive(false);

            Chose_close.SetActive(true);
            Door_close.SetActive(true);
        }
    }