Пример #1
0
    // 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();
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     stateStory = introduction;
     ShowStory();
 }