Ejemplo n.º 1
0
 void Start()
 {
     hejsan = GameObject.FindObjectOfType(typeof(SortingOfBlueprints)) as SortingOfBlueprints;
     if (hejsan.IsFull())
     {
         hejsan.PlaceOnTop(gameObject);
     }
     else
     {
         hejsan.AddToList(gameObject);
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     searchText = SearchBar.GetComponent <InputField>().text;
     if (searchText == "")
     {
         tabort1.SetActive(true);
         tabort2.SetActive(true);
         tabort3.SetActive(true);
         tabort4.SetActive(true);
         tabort5.SetActive(true);
         tabort6.SetActive(true);
         if (hejsanhoppsan.HasAddedBlueprint())
         {
             tabort7.SetActive(true);
         }
         if (dontSetActiveAgain)
         {
             SortingOfBlueprints hejsan = GameObject.FindObjectOfType(typeof(SortingOfBlueprints)) as SortingOfBlueprints;
             hejsan.SortList();
             dontSetActiveAgain = false;
         }
     }
     else
     {
         GetComponent <RectTransform>().localPosition = new Vector3(0, 163, 0);
         tabort1.SetActive(false);
         tabort2.SetActive(false);
         tabort3.SetActive(false);
         tabort4.SetActive(false);
         tabort5.SetActive(false);
         tabort6.SetActive(false);
         if (hejsanhoppsan.HasAddedBlueprint())
         {
             tabort7.SetActive(false);
         }
         dontSetActiveAgain = true;
     }
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     hejsan  = GameObject.FindObjectOfType(typeof(SortingOfBlueprints)) as SortingOfBlueprints;
     hejsan2 = GameObject.FindObjectOfType(typeof(SphereScript)) as SphereScript;
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     pos           = transform.position;
     hejsanhoppsan = GameObject.FindObjectOfType(typeof(SortingOfBlueprints)) as SortingOfBlueprints;
 }