Skip to main content
Formatted code.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82
     function Update () {
    if (Input.GetKey(KeyCode.Home)){
  
       // Home button pressed! 
 write every thing     // Write everything you want to do here
  
   }
    if (Input.GetKey(KeyCode.Escape)){
        // Escape button codespressed
    }
    if(Input.GetKey(KeyCode.Menu)){
                 Application.Quit();
    }
 }
     function Update () {
  if (Input.GetKey(KeyCode.Home)){
  
   //Home button pressed! write every thing you want to do
  
   }
  if (Input.GetKey(KeyCode.Escape)){
  //Escape button codes
  }
  if(Input.GetKey(KeyCode.Menu)){
                 Application.Quit();
 }
 }
function Update () {
    if (Input.GetKey(KeyCode.Home)){
        // Home button pressed 
        // Write everything you want to do here
    }
    if (Input.GetKey(KeyCode.Escape)){
        // Escape button pressed
    }
    if(Input.GetKey(KeyCode.Menu)){
        Application.Quit();
    }
}
Source Link

     function Update () {
  if (Input.GetKey(KeyCode.Home)){
  
  //Home button pressed! write every thing you want to do
  
  }
  if (Input.GetKey(KeyCode.Escape)){
  //Escape button codes
  }
  if(Input.GetKey(KeyCode.Menu)){
                 Application.Quit();
 }
 }