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(); }
void Start() { Left = sv.GetRight(); Right = sv.GetLeft(); Up = sv.GetDown(); Down = sv.GetUp(); fd = this.GetComponent <FindAllClosestObstacles>(); }
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); } }