Ejemplo n.º 1
0
 public void OpenTileMenu()
 {
     menuActive = 4;
     //menus[4].SetActive(true);
     //menus[4].GetComponentInChildren<Canvas>().sortingOrder = activeUIElements + 1;
     WorldInteractionController.GetInstance().SetInInfoMode(true);
     activeUIElements++;
 }
Ejemplo n.º 2
0
 // 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;
 }
Ejemplo n.º 3
0
 void CloseMenu()
 {
     TileInfomationMenu.Close();
     WorldInteractionController.GetInstance().SetInInfoMode(false);
 }