Advertisement
LittleAngel

find reference

Jul 26th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. mainCamera = GameObject.FindWithTag ("MainCamera");
  2. if (mainCamera != null)
  3. gameController = mainCamera.GetComponent (GameController);
  4. if (gameController == null)
  5. Debug.Log ("Cannot find 'GameController' script!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement