Example #1
0
 public void HideWarning()
 {
     //stop fading out
     StopCoroutine("FadeInfoUI");
     //destroy the message
     gameui.HideMessage();
 }
    void UiInfo(string mes, Color col)
    {
        GameInfoUI info = gameObject.AddComponent <GameInfoUI>();

        info.SetButton(LocaleManager.locale.OK, () => { info.HideMessage(); Destroy(info); });
        info.ShowMessage(mes, col);
    }