/// <summary> /// Send a message via bluetooth /// </summary> public virtual void SendMessage(MessagePickerMessageWithUI mpm) { // Show it for yourself // Not emoji -> show text message BluetoothMessageManager.ShowEmojiMessage(EmojiSprites.GetEmoji(mpm.message), true); // Send it vie bluetooth Bluetooth.Instance().Send(BluetoothMessageStrings.SEND_MESSAGE + "#" + mpm.message); }
public override void SendMessage(MessagePickerMessageWithUI mpm) { // Show it for yourself // Not emoji -> show text message BluetoothMessageManager.ShowEmojiMessage(EmojiSprites.GetEmoji(mpm.message), true); // Send it via gp PlayGamesPlatform.Instance.RealTime.SendMessageToAll(true, System.Text.Encoding.Unicode.GetBytes(GPMessageStrings.SEND_MSG + "#" + mpm.message)); }
void Start() { lineRenderer = GetComponent <LineRenderer>(); rectTransform = GetComponent <RectTransform>(); fullPanelImage = GameObject.Find("FullPanel").GetComponent <Image>(); fullPanelImage.gameObject.SetActive(false); // Set messages messages = new MessagePickerMessageWithUI[PreferencesScript.Instance.EMOJI_COUNT]; string[] msgPaths = PreferencesScript.Instance.GetEmojiNames(); for (int i = msgPaths.Length - 1; i >= 0; i--) { messages[i] = new MessagePickerMessageWithUI(msgPaths[i]); } // Set radius to correct size textCircleRadius *= canvasHeight; InitMessagePickerUI(); }