Ejemplo n.º 1
0
    void Update()
    {
        //Debug.Log(typing_controller.HasSpawnEntry());

        if (typing_controller.HasSpawnEntry())
        {
            StoryEntry spawn_entry = typing_controller.GetSpawnEntry();
            Debug.Log(spawn_entry);
            level_spawner.AddStoryEntry(spawn_entry);
        }

        if (current_game_condition == GameCondition.lose_logic)
        {
            LoseLogic();
            current_game_condition = GameCondition.lose_done;
        }

        if (current_game_condition == GameCondition.running)
        {
            if (archer.CurrentBowstringCount <= 0)
            {
                current_game_condition = GameCondition.lose_logic;
            }
        }
    }