// Use this for initialization void Start() { if (sceneTransition == null) { sceneTransition = GameObject.Find("SceneTransitionGUI").GetComponent <SceneTransitionGUI> (); } }
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> (); }
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> (); }
// Use this for initialization void Start() { if (sceneTransition == null) { sceneTransition = GameObject.Find("SceneTransitionGUI").GetComponent <SceneTransitionGUI> (); } if (manager == null) { manager = GameObject.Find("GameManager").GetComponent <GameManager>(); } }
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> (); }
// Use this for initialization void Start () { if (sceneTransition == null) sceneTransition = GameObject.Find ("SceneTransitionGUI").GetComponent<SceneTransitionGUI> (); }