예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (adjustMenuScript == null)
     {
         adjustMenuScript = GameObject.Find("popUI").GetComponent <adjustMenu>();
     }
 }
예제 #2
0
 //Initialization functions
 void Start()
 {
     if (hexa == null)
     {
         hexa = Hexasphere.GetInstance("Hexasphere");
     }
     if (menuObject == null)
     {
         menuObject = GameObject.Find("popUI").GetComponent <adjustMenu>();
     }
 }
예제 #3
0
 //When button for creating a wall is pressed,
 // Start is called before the first frame update
 void Start()
 {
     if (adjustM == null)
     {
         adjustM = GameObject.Find("popUI").GetComponent <adjustMenu>();
     }
     if (hexa == null)
     {
         hexa = GameObject.Find("Hexasphere").GetComponent <Hexasphere>();
     }
 }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     if (menu == null)
     {
         menu = GameObject.Find("popUI").GetComponent <adjustMenu>();
     }
     if (popUI == null)
     {
         popUI = GameObject.Find("popUI");
     }
     for (int i = 0; i < popUI.transform.childCount; i++)
     {
         Image child = popUI.transform.GetChild(i).GetComponent <Image>();
         //CanvasGroup childCanvas = child.GetComponent<CanvasGroup>();
         popUIChildren.Add(child);
     }
 }
예제 #5
0
 void Start()
 {
     if (touchMan == null)
     {
         touchMan = GameObject.Find("_Managers").GetComponent <touchManager>();
     }
     if (menuParent == null)
     {
         menuParent = GetComponentInParent <adjustMenu>();
     }
     if (hexa == null)
     {
         hexa = menuParent.hexa;
     }
     if (robotParent == null)
     {
         robotParent = GameObject.Find("Robots").GetComponent <Transform>();
     }
 }