void Update()
 {
     if (!ran && taskList.IsTaskDone("Kill aliens"))
     {
         ran = true;
         speechController.UpdateTexts("That's the last of them!\n\nNow to rescue Lisa!");
         speechController.StartSpeech(this.gameObject);
     }
 }
    public override void Action(GameObject player)
    {
        TaskList tl = player.GetComponent <TaskList>();

        if (!tl.IsTaskDone(barrierTask))
        {
            SpeechController speechController = player.GetComponent <SpeechController>();
            speechController.UpdateTexts(tl.GetBarrierMessage(barrierTask));
            speechController.StartSpeech(player);
        }
        else
        {
            DayManager.GotoNextDay();
        }
    }
Exemple #3
0
    public override void Action(GameObject player)
    {
        TaskList tl = player.GetComponent <TaskList>();

        if (!tl.IsTaskDone(barrierTask))
        {
            SpeechController speechController = player.GetComponent <SpeechController>();
            speechController.UpdateTexts(tl.GetBarrierMessage(barrierTask));
            speechController.StartSpeech(player);
        }
        else
        {
            //player.GetComponent<PlayerControl>().freezeInput = true;
            player.SetActive(false);
            computer.SetActive(true);
        }
    }