ChangeEnglishLanguageButton.cs 409 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ChangeEnglishLanguageButton : MonoBehaviour
  5. {
  6. private void Update()
  7. {
  8. if (Input.GetKeyDown(KeyCode.E))
  9. {
  10. OnButtonClick();
  11. }
  12. }
  13. public void OnButtonClick()
  14. {
  15. SafetyAreaLanguageManager.Instance.ChangeLanguage(SafetyAreaLanguageEnum.English);
  16. }
  17. }