void Start() { screenHeight = Screen.height; screenWidth = Screen.width; QuitOnConnectionErrors(); STRUCTURE_ELEMENT = GameObject.FindGameObjectWithTag("StructureParent"); STRUCTURE_ELEMENT.SetActive(false); UIinstance = ARviewUI.Instance; }
void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } }