// Update is called once per frame void Update() { for (int i = 0; i < stateStory.GetNextStories().Length; i++) { if (Input.GetKeyDown(KeyCode.Keypad1 + i)) { stateStory = stateStory.GetNextStories()[i]; } } ShowStory(); }
// Start is called before the first frame update void Start() { stateStory = introduction; ShowStory(); }