Esempio n. 1
0
 // called when screen tapped on in title screen
 public void tapToBegin()
 {
     StartCoroutine(title.moveTo(Camera.main.ViewportToScreenPoint(new Vector3(0.25f, 0.5f, 0)), menuTransitionDuration));
     StartCoroutine(mainMenu.moveTo(Camera.main.ViewportToScreenPoint(new Vector3(0.5f, 0.5f, 0)), menuTransitionDuration));
     tapToBeginText.fadeTo(0, menuTransitionDuration);
     tapToBeginText.setRaycastTarget(false);
 }