Beispiel #1
0
 public static void DisplayMessage(string str)
 {
     if (!init)
     {
         GameObject gameObject = new GameObject();
         gameObject.name        = "GameMessage";
         gameMessage            = gameObject.AddComponent <GameMessage>();
         gameMessage.messageObj = gameObject;
         Init();
     }
     gameMessage.DisplayMsg(str);
 }
Beispiel #2
0
    static public void DisplayMessage(string str)
    {
        if (!init)
        {
            GameObject obj = new GameObject();
            obj.name               = "GameMessage";
            gameMessage            = obj.AddComponent <GameMessage>();
            gameMessage.messageObj = obj;

            Init();
        }

        gameMessage.DisplayMsg(str);
    }
Beispiel #3
0
    static public void DisplayMessage(string str)
    {
        if (!gameMessage.init)
        {
            GameObject obj = new GameObject();
            obj.name               = "GameMessage";
            gameMessage            = obj.AddComponent <GameMessage>();
            gameMessage.messageObj = obj;

            Init();
        }

        if (gameMessage.uiFlag)
        {
            UI.ShowMessage(str);
        }
        else
        {
            gameMessage.DisplayMsg(str);
        }
    }