Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mainCamera = GameObject.FindWithTag ("MainCamera");
- if (mainCamera != null)
- gameController = mainCamera.GetComponent (GameController);
- if (gameController == null)
- Debug.Log ("Cannot find 'GameController' script!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement