Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     pressYes           = pressYes.GetComponent <Button>();
     pressNo            = pressNo.GetComponent <Button>();
     inGameMenu         = inGameMenu.GetComponent <Canvas>();
     retryMenu          = retryMenu.GetComponent <Canvas>();
     player             = player.GetComponent <playerMovement_>();
     endScore           = endScore.GetComponent <scoreCount>();
     endScoreText       = endScoreText.GetComponent <Text>();
     retryMenu.enabled  = false;
     inGameMenu.enabled = false;
     pressYes.enabled   = false;
     pressNo.enabled    = false;
 }
Exemplo n.º 2
0
 void Start()
 {
     pause = pause.GetComponent <menuScriptInGame>();
     score = score.GetComponent <scoreCount>();
 }