Beispiel #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
            }
        }
    }
Beispiel #2
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");
        }
    }