SwitcherGameName.cs 508 B

12345678910111213141516171819202122232425
  1. using System;
  2. using UnityEngine;
  3. using System.Collections;
  4. public class SwitcherGameName : MonoBehaviour
  5. {
  6. public UISprite GameIslandic;
  7. public UITexture GameEnglish;
  8. void Start()
  9. {
  10. switch(MenuManager._instance.CurStateGameState)
  11. {
  12. case MenuManager.StateGameProduction.DurexLifja:
  13. GameIslandic.enabled = true;
  14. GameEnglish.enabled = false;
  15. break;
  16. case MenuManager.StateGameProduction.None:
  17. GameIslandic.enabled = false;
  18. GameEnglish.enabled = true;
  19. break;
  20. }
  21. }
  22. }