| 123456789101112131415161718192021222324252627 |
- using System.Collections;
- using UnityEngine;
- using UnityEngine.EventSystems;
- public class NewQuestion : QuestionCard {
- // Start is called before the first frame update
- public Vector3 originalPos;
- public Quaternion originalRot;
- void Start()
- {
- // Get question from server
- originalPos = this.transform.position;
- originalRot = this.transform.rotation;
- }
- private static NewQuestion instance;
- public static NewQuestion Instance() {
- if (!instance) {
- instance = FindObjectOfType(typeof(NewQuestion)) as NewQuestion;
- if (!instance) {
- Debug.Log("There need to be at least one active GenericDialog on the screen");
- }
- }
- return instance;
- }
- }
|