예제 #1
0
        protected override void SignalBypass()
        {
            base.SignalBypass();

            if (recentFilePath == null || recentFilePath != text.text)
            {
                if (LoadNewFile(text.text))
                {
                    recentFilePath = text.text;
                    SignalManager.EmitSignal(new Signal(emitFileLoad));
                }
                else
                {
                    Global.inst.textAgent.Update(textRequest, LocalizationSupport.GetLocalizedString(notFound));
                }
            }
        }
        void Start()
        {
            {
                var file = Resources.Load("CodexBuildings") as TextAsset;
                Global.inst.textAgent.Register("BuildingCodex", LocalizationSupport.GetLocalizedString(file.text));
            }

            {
                var file = Resources.Load("CodexUnits") as TextAsset;
                Global.inst.textAgent.Register("UnitCodex", LocalizationSupport.GetLocalizedString(file.text));
            }

            {
                var file = Resources.Load("CodexShortcut") as TextAsset;
                Global.inst.textAgent.Register("ShortcutCodex", LocalizationSupport.GetLocalizedString(file.text));
            }
        }
예제 #3
0
 protected override void Start()
 {
     base.Start();
     Global.inst.textAgent.Register(textRequest);
     Global.inst.textAgent.Update(textRequest, LocalizationSupport.GetLocalizedString(readHint));
 }