public void OpenTileMenu() { menuActive = 4; //menus[4].SetActive(true); //menus[4].GetComponentInChildren<Canvas>().sortingOrder = activeUIElements + 1; WorldInteractionController.GetInstance().SetInInfoMode(true); activeUIElements++; }
// Create the singletone for the WorldInteractionController. Also checks if there is another present and logs and error. void CreateSingleton() { if (instance != null) { Debug.LogError("WorldInteractionController already exists while it should be instantiated only once."); Destroy(gameObject); return; } instance = this; }
void CloseMenu() { TileInfomationMenu.Close(); WorldInteractionController.GetInstance().SetInInfoMode(false); }