Пример #1
0
    void Start()
    {
        canvasObject = GameObject.Find ("Canvas");
        canvasTransform = canvasObject.GetComponent<RectTransform> ();
        iconTransform = GetComponent<RectTransform> ();

        // reset canvas hierarchy so ScreenFade is always on top (masks UI/HUD on fade)
        sFader = GameObject.Find ("Screen Fade").GetComponent<ScreenFade> ();
        sFader.ResetParent ();

        pManager = GameObject.Find ("Pause Manager").GetComponent<PauseManager> ();
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        fader = GameObject.Find ("Screen Fade").GetComponent<ScreenFade> ();
        fader.ResetParent ();

        ResetBox ();

        startTime = Time.realtimeSinceStartup;
        boxSize 	= new Vector3 (400, 140, 0);
        cornerSize 	= new Vector3 (15, 15, 0);
        tutorialTransform = GetComponent<RectTransform> ();

        Invoke ("InterruptTutorial", 5);
    }