void Awake() { instance = this; rectTransform = transform as RectTransform; screenLabel = new ScreenLabel(rectTransform); screenLabel.Hide(); Instantiate(instance.softwareCursorPrefab, rectTransform); }
void Awake() { instance = this; rectTransform = transform as RectTransform; screenLabel = new ScreenLabel(rectTransform); screenLabel.Hide(); _softwareCursor = new SoftwareCursor(rectTransform); }
void Awake() { instance = this; canvas = FindObjectOfType <Canvas>(); label = new Label(transform); label.Hide(); screenLabel = new ScreenLabel(canvas.transform as RectTransform); screenLabel.Hide(); Instantiate(instance.softwareCursorPrefab, canvas.transform); }