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