Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        gameQuestManager = FindObjectOfType <QuestGameManager>();
        PlayerPoints     = FindObjectOfType <Points>();

        // Attach Events
        gameQuestManager.answerEvents.OnQuestionCompleted += OnGameCompleted;
        gameQuestManager.answerEvents.OnAnswerAssert      += OnAnswerAssert;
        gameQuestManager.answerEvents.OnAnswerError       += OnAnswerError;

        StartGame();
    }
Exemplo n.º 2
0
 private void Awake()
 {
     // Define modules
     gameQuestManager = FindObjectOfType <QuestGameManager>();
     PlayerPoints     = FindObjectOfType <Points>();
 }
Exemplo n.º 3
0
 private void OnEnable()
 {
     questPlayed      = serializedObject.FindProperty("questPlayed");
     questGameManager = target as QuestGameManager;
 }