Beispiel #1
0
 public void BackButton()
 {
     // this method allows the backbutton to return to its calling Process
     Backbutton.SetActive(false);
     PlayButton.SetActive(true);
     Quitbutton.SetActive(true);
     Optionsbutton.SetActive(true);
 }
Beispiel #2
0
 public void OptionsButton()
 {
     Quadmove.backgroundSpeed = 0f;
     Pspeed.speed             = 0;
     PlayButton.SetActive(false);
     Quitbutton.SetActive(false);
     Backbutton.SetActive(true);
     Optionsbutton.SetActive(false);
 }
Beispiel #3
0
 // Update is called once per frame
 public void PlayGame()
 {
     StartGame = true;
     Accessgravity.lola.GetComponent <Rigidbody2D>().gravityScale = 1f;
     Accessgravity.birdSpeed  = 4.5f;
     Quadmove.backgroundSpeed = 0.6f;
     Spawner.gameObject.SetActive(true);
     // moveRods.pipeSpeed = 3f;
     // makes the playbutton disappear after clicking.
     PlayButton.SetActive(false);
     Optionsbutton.SetActive(false);
     Quitbutton.SetActive(false);
     // nameofgame.text.GetComponent<Text>().enabled = false;
     namebutton.SetActive(false);
 }