ChangeChineseLanguageButton.cs 408 B

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