Exemple #1
0
 private void Awake()
 {
     if (nodeType == NType.Basic)
     {
         pointer2 = new GameObject("pointer2");
         pointer2.transform.localScale        *= 0.32f;
         pointer2.transform.parent             = this.transform.parent;
         pointer2.AddComponent <Image>().color = new Color(1, 0.5f, 0.5f);
         CurrPanel = this;
         pointer2.transform.position = this.transform.position;
     }
     mySprite = GetComponent <Image>().sprite;
 }
Exemple #2
0
 public void OnPointerClick(PointerEventData eventData)
 {
     CurrPanel = this;
     pointer2.transform.position = this.transform.position;
 }