Exemplo n.º 1
0
        public static void Test()
        {
            UITest test = new UITest();

            test.Init();
            Debug.Log("Test");
        }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        VedioSource = GameObject.Find("Sofa/Scenario/TV/Canvas_TV/Image_TV").GetComponent <AudioSource>();
        animations  = GameObject.Find("Sofa/Scenario/woman").GetComponent <Animation>();
        animations.Stop();
        Q6 = GameObject.Find("Canvas/Q6");
        Q7 = GameObject.Find("Canvas/Q7");

        Q6.GetComponent <Button>().onClick.AddListener(OnClickQ6);
        Q7.GetComponent <Button>().onClick.AddListener(OnClickQ7);

        source             = GameObject.Find("Sofa/Scenario/fb").GetComponent <AudioSource>();
        source.loop        = false;
        source.playOnAwake = false;

        TestImage = GameObject.FindWithTag("Test").GetComponent <Image>();
        UITest    = GameObject.Find("Canvas_Info").GetComponent <UITest>();
        UITest.Init();
    }