Game Development Reference
In-Depth Information
9. Then, on the MainCamera , invoke the lookup() method, to make sure the
pop up is presented in a visually pleasing way, as follows:
GameObject camObj = Camera.main.gameObject
if ( camObj )
{
camObj.GetComponent<GameCam>().LookUp();
}
10. Lastly, find the clock object named Time , and disable it with the following
code. This is done to make sure the game doesn't show the out-of-time pop
up while waiting for the success pop up:
GameObject clock =
GameObject.Find("Time");
if (clock)
{
clock.SetActive(false);
}
Search WWH ::




Custom Search