28 lines
574 B
C#
28 lines
574 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace PahlawanEnergi.Quiz
|
|
{
|
|
|
|
|
|
public class QuizInteractable : InteractableObject
|
|
{
|
|
public int questionId;
|
|
|
|
protected override void OnTriggerEnter2D(Collider2D collision)
|
|
{
|
|
base.OnTriggerEnter2D(collision);
|
|
GameplayGUIManager.instance.quizScreen.InitializeQuestion(questionId);
|
|
}
|
|
|
|
protected override void OnTriggerExit2D(Collider2D collision)
|
|
{
|
|
base.OnTriggerExit2D(collision);
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|