Пример #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);
        }
    }