Пример #1
0
        public void ShowMessage(
            AIProject.Definitions.Popup.Warning.Type _type,
            int _colorID,
            int _posID = 0,
            System.Action _onComplete = null)
        {
            string[] source;
            if (Singleton <Resources> .Instance.PopupInfo.WarningTable.TryGetValue((int)_type, ref source))
            {
                ;
            }
            int index = !Singleton <GameSystem> .IsInstance() ? 0 : Singleton <GameSystem> .Instance.languageInt;

            this.ShowMessage((source != null ? source.GetElement <string>(index) : (string)null) ?? string.Empty, _colorID, _posID, _onComplete);
        }
Пример #2
0
 public void ShowMessage(AIProject.Definitions.Popup.Warning.Type _type)
 {
     this.ShowMessage(_type, 2, 0, (System.Action)null);
 }