Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     if (sceneTransition == null)
     {
         sceneTransition = GameObject.Find("SceneTransitionGUI").GetComponent <SceneTransitionGUI> ();
     }
 }
Beispiel #2
0
	void Start () { 
		//If for some reasons public link to GameObject are misssing :
		if(player == null) player = (GameObject) GameObject.FindGameObjectWithTag("Player");
		if (targetAnchor == null) targetAnchor = (gameObject.GetComponentsInChildren<Transform> ()) [1].gameObject; 

		transitionGUI = (SceneTransitionGUI) GameObject.FindGameObjectWithTag ("TransitionGUI").GetComponent<SceneTransitionGUI> ();


	}
Beispiel #3
0
    void Start()
    {
        //If for some reasons public link to GameObject are misssing :
        if (player == null)
        {
            player = (GameObject)GameObject.FindGameObjectWithTag("Player");
        }

        transitionGUI = (SceneTransitionGUI)GameObject.FindGameObjectWithTag("TransitionGUI").GetComponent <SceneTransitionGUI> ();
    }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     if (sceneTransition == null)
     {
         sceneTransition = GameObject.Find("SceneTransitionGUI").GetComponent <SceneTransitionGUI> ();
     }
     if (manager == null)
     {
         manager = GameObject.Find("GameManager").GetComponent <GameManager>();
     }
 }
Beispiel #5
0
    void Start()
    {
        //If for some reasons public link to GameObject are misssing :
        if (player == null)
        {
            player = (GameObject)GameObject.FindGameObjectWithTag("Player");
        }
        if (targetAnchor == null)
        {
            targetAnchor = (gameObject.GetComponentsInChildren <Transform> ()) [1].gameObject;
        }

        transitionGUI = (SceneTransitionGUI)GameObject.FindGameObjectWithTag("TransitionGUI").GetComponent <SceneTransitionGUI> ();
    }
Beispiel #6
0
	// Use this for initialization
	void Start () {
		if (sceneTransition == null) sceneTransition = GameObject.Find ("SceneTransitionGUI").GetComponent<SceneTransitionGUI> ();
	}