MemeTexter/Assets/Scripts/MessageManager.cs
/// <summary>
/// Immediately as the MessageManager is created, figure out the singleton stuff and generate the text messages from the MessageData file if it hasn't already been done.
/// </summary>
Immediately as the MessageManager is created, figure out the singleton stuff and generate the text messages from the MessageData file if it hasn't already been done.
Immediately as the MessageManager is created figure out the singleton stuff and generate the text messages from the MessageData file if it hasn ' t already been done .
void Awake()
    {
        if (singleton != null)
            Destroy(singleton);
        else
            singleton = this;
        DontDestroyOnLoad(this);
        if (texts.Count == 0)
        {
            FillGlobalDialogs();
        }
    }
void Awake ( ) { if ( singleton != null ) Destroy ( singleton ) ; else singleton = this ; DontDestroyOnLoad ( this ) ; if ( texts . Count == 0 ) { FillGlobalDialogs ( ) ; } }
Immediately as the MessageManager is created, figure out the singleton stuff and generate the text messages from the MessageData file if it hasn't already been done.
Immediately as the MessageManager is created figure out the singleton stuff and generate the text messages from the MessageData file if it hasn ' t already been done .
// Singleton stuff //fill the dialogs if empty