Ejemplo n.º 1
0
	public void Initialise(int viewID)
	{
		PhotonView view = PhotonView.Find(viewID);
		PlayerCharacter pc = view.GetComponent<PlayerCharacter>();
		if(pc != null)
		{
			Debug.Log("found the son of a bitch");
			targetCS = pc;
			portraitIcon.spriteName = targetCS.headPortraitString;
			targetCS.DisplayTeamSign(true);
			nameLabel.text = targetCS.characterName;
			Debug.Log(nameLabel.text);
			isDisplayed = true;
			gameObject.SetActive(true);
		}
	}