Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     //only if i have nothing selected are we allowed to pause
     if (buildTool.HasSelected() == false)
     {
         if (Input.GetKeyDown(KeyCode.Escape))
         {
             Pause();
         }
     }
 }