// Update is called once per frame void Update() { if (TutorialManager.Instance().GetStep() == 1) { if (inputMade.TrueForAll(x => x == 1)) { TutorialManager.Instance().NextStep(); } if (Input.GetKeyDown(GameInputManager.GetKeyMapOn("Forward"))) { inputMade[0] = 1; } if (Input.GetKeyDown(GameInputManager.GetKeyMapOn("Backward"))) { inputMade[1] = 1; } if (Input.GetKeyDown(GameInputManager.GetKeyMapOn("Left"))) { inputMade[2] = 1; } if (Input.GetKeyDown(GameInputManager.GetKeyMapOn("Right"))) { inputMade[3] = 1; } } }
// Update is called once per frame void Update() { textButton.text = GameInputManager.GetKeyMapOn(actionKey).ToString(); }
// Start is called before the first frame update void Start() { inputKey = GameInputManager.GetKeyMapOn(actionKey); textButton.text = GameInputManager.GetKeyMapOn(actionKey).ToString(); changingBinding = false; }