Esempio n. 1
0
 void Awake()
 {
     instance      = this;
     rectTransform = transform as RectTransform;
     screenLabel   = new ScreenLabel(rectTransform);
     screenLabel.Hide();
     Instantiate(instance.softwareCursorPrefab, rectTransform);
 }
Esempio n. 2
0
 void Awake()
 {
     instance      = this;
     rectTransform = transform as RectTransform;
     screenLabel   = new ScreenLabel(rectTransform);
     screenLabel.Hide();
     _softwareCursor = new SoftwareCursor(rectTransform);
 }
Esempio n. 3
0
 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);
 }