// Show bubble chat at player avatar
 private void DisplayBubbleChat(string text, PlayerSlotScript player) {
   text = Utils.ChatUnescape(text);
   GameObject tempGameObject = NGUITools.AddChild(gameObject, Resources.Load(Global.SCREEN_PATH + "/GameScreen/SpeechBubble", typeof(GameObject)) as GameObject);
  	tempGameObject.name = "SpeechBubble";
  	// fake chat alway from player 1;
  	tempGameObject.transform.position = player.bubbleChatPos;
  	SpeechBubble bubble = tempGameObject.GetComponent<SpeechBubble>();
  	bubble.SetText(text);
 }
Exemplo n.º 2
0
	private void PlayCardFromOther(PlayerSlotScript player) {
	  // TEST STOP Player turn's circle if played
    // player.StopCircle();
	  //##########
		EventPlayOPCards(player.transform, new string[] {"6C", "7C", "8C"});
	}