Esempio n. 1
0
 void UpdateKey()
 {
     Up.text     = sv.GetUp().ToString();
     Down.text   = sv.GetDown().ToString();
     Left.text   = sv.GetLeft().ToString();
     Right.text  = sv.GetRight().ToString();
     Mirror.text = sv.GetMirror().ToString();
 }
Esempio n. 2
0
 void Start()
 {
     Left  = sv.GetRight();
     Right = sv.GetLeft();
     Up    = sv.GetDown();
     Down  = sv.GetUp();
     fd    = this.GetComponent <FindAllClosestObstacles>();
 }
Esempio n. 3
0
 private void PauseMenu()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         pausemenu = !pausemenu;
     }
     if (pausemenu)
     {
         GameUI.SetActive(false);
         GamePause.SetActive(true);
         GameObject.Find("MovementsText").GetComponent <TextMeshProUGUI>().text   = "Movements: " + '\n' + sv.GetUp() + sv.GetLeft() + sv.GetDown() + sv.GetRight();
         GameObject.Find("InvertMovements").GetComponent <TextMeshProUGUI>().text = "Invert Movements: " + '\n' + sv.GetMirror();
     }
     else
     {
         GameUI.SetActive(true);
         GamePause.SetActive(false);
     }
 }