public void Awake()
 {
     dialogueProgress = GameObject.FindGameObjectWithTag("UIManager").GetComponent <DialogueProgress>();
     quest            = GameObject.FindGameObjectWithTag("GameManager").GetComponent <Quest>();
     uIManager        = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UIManager>();
     uIManager.NewScene();
     quest.NewScene();
     dialogueProgress.NewScene();
     dialogueProgress.Hide();
 }
 public void Begin()
 {
     quest            = GetComponent <Quest>();
     voiceOver        = GetComponent <AudioSource>();
     dialogueProgress = GetComponent <DialogueProgress>();
 }
예제 #3
0
    public override void QuestStart(Quest quest, DialogueProgress d)
    {
        base.QuestStart(quest, d);

        Instantiate(item, positionToSpawn, Quaternion.identity);
    }
예제 #4
0
 public override void QuestStart(Quest quest, DialogueProgress d)
 {
     Debug.Log("Talking");
     d.StartDialogue(audiodialog);
 }
예제 #5
0
    public virtual void QuestStart(Quest quest, DialogueProgress d)
    {
        Debug.Log("Spawned");

        quest.myQuestText.text = questText;
    }
예제 #6
0
 public void NewScene()
 {
     myQuestText      = GameObject.FindGameObjectWithTag("QuestText").GetComponent <Text>();
     dialogueProgress = GameObject.FindGameObjectWithTag("UIManager").GetComponent <DialogueProgress>();
     uI = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UIManager>();
 }
예제 #7
0
 public void Start()
 {
     dialogueProgress = GameObject.FindGameObjectWithTag("UIManager").GetComponent <DialogueProgress>();
 }