Exemplo n.º 1
0
    public void Target_UCE_ShowPopup(NetworkConnection target, string message, byte iconId, byte soundId)
    {
        if (popup == null)
        {
            popup = GetComponent <UCE_Popup>();
        }

        if (popup != null)
        {
            popup.Prepare(message, iconId, soundId);
            popup.Show();
            if (!popup.forceUseChat)
            {
                UCE_AddMessage(message, 0, false);                                      // todo: add editable color
            }
        }
    }
Exemplo n.º 2
0
    // -----------------------------------------------------------------------------------
    // UCE_ClientShowPopup
    // Shows a popup, triggered on the client, shown on the client
    //  @Client
    // -----------------------------------------------------------------------------------
    public void UCE_ClientShowPopup(string message, byte iconId, byte soundId)
    {
        if (popup == null)
        {
            popup = GetComponent <UCE_Popup>();
        }

        if (popup != null)
        {
            popup.Prepare(message, iconId, soundId);
            popup.Show();
            if (!popup.forceUseChat)
            {
                UCE_AddMessage(message, 0, false);                                      // todo: add editable color
            }
        }
    }
Exemplo n.º 3
0
    public void Target_UCE_ShowPopup(NetworkConnection target, string message, byte iconId, byte soundId)
    {
        if (popup == null)
        {
            popup = GetComponent <UCE_Popup>();
        }

        if (popup != null)
        {
            popup.Prepare(message, iconId, soundId);
            popup.Show();
        }
        else
        {
            Debug.LogWarning("You forgot to assing UCE_Popup component to your player prefab");
        }
    }