using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// /// текст над маркером /// public class LabelObjectScript : MonoBehaviour { RectTransform canvasRect; GameObject text; Button button; public bool TrackMarker = true; public uint UserId; //public string NameUser; // Start is called before the first frame update void Start() { //text = Instantiate(Resources.Load("GameObjects/Capsule", typeof(GameObject))) as GameObject; cameraController = Camera.main.GetComponent(); canvasRect = transform.GetChild(0).GetComponent(); text = transform.GetChild(0).GetChild(0).GetChild(0).gameObject; var player = PlayerController.instance; if (TrackMarker) { button = transform.GetChild(0).GetChild(0).GetChild(1).GetComponent