tmoneygames

QuestGiver.cs

Aug 10th, 2021
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. public class QuestGiver : MonoBehaviour
  2. {
  3.     [SerializeField] Quest quest; //<<<---------
  4.  
  5.     public void GiveQuest()
  6.     {
  7.         QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent<QuestList>();
  8.         questList.AddQuest(quest);
  9.     }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment