Exemplo n.º 1
0
    // 初始化调用
    void Start()
    {
        soundPlay = GameObject.Find("Audio_Source").GetComponent <SoundPlay> ();
        soundPlay.InAssembleScene();
        // 设置遮罩和弹出窗口的可见性
        mask                          = GameObject.Find("Canvas/Mask/mask").GetComponent <Image> ();
        mask.enabled                  = false;
        canvasWindow                  = GameObject.Find("CanvasWindow").GetComponent <Canvas> ();
        canvasWindow.enabled          = false;
        matchingSuccess               = canvasWindow.transform.Find("MatchingSuccess").GetComponent <RectTransform> ();
        matchingFail                  = canvasWindow.transform.Find("MatchingFail").GetComponent <RectTransform> ();
        canvasAtlas                   = canvasWindow.transform.Find("CanvasAtlas").GetComponent <RectTransform> ();
        matchingSuccess.localPosition = vUnEnable;
        matchingFail.localPosition    = vUnEnable;
        canvasAtlas.localPosition     = vUnEnable;
        TangramAA                     = GameObject.Find("Main Camera").GetComponent <TangramAutomaticAdjustment> ();

        InitializeUIColor();
    }