FullScreenTextController.cs 534 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. namespace GFGGame
  3. {
  4. public class FullScreenTextController
  5. {
  6. public const string RESIN_TXT_DIR_PATH = "Assets/ResIn/Txt";
  7. public static string GetTxtPath(string res, string extName = "txt")
  8. {
  9. return $"{RESIN_TXT_DIR_PATH}/{res}.{extName}";
  10. }
  11. public static void Show(string eventName)
  12. {
  13. if (!string.IsNullOrEmpty(eventName))
  14. {
  15. FullScreenTextView.Instance.Show(eventName);
  16. }
  17. }
  18. }
  19. }