using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace MPStudio
{
    public class AutoLanguage : MonoBehaviour
    {
        public int id = 0;
        private Text _txt;

        private void Awake()
        {
            _txt = GetComponent<Text>();
        }


        void Start()
        {
            if (id != 0)
            {
                _txt.text = LanguageManager.Inst.GetMessage(this.id);
            }
        }

        // Update is called once per frame
        void Update()
        {

        }
    }
}