SwitcherGameName.cs 526 B

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