예제 #1
0
 public override void Action(GameObject player)
 {
     if (speechController != null)
     {
         speechController.StartSpeech(player);
     }
 }
예제 #2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (speechController != null)
     {
         speechController.StartSpeech(other.gameObject);
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
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
        {
            DayManager.GotoNextDay();
        }
    }
예제 #5
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);
        }
    }