Example #1
0
        private void OnQueryRemoveButtonLogic(GameObject POIButton)
        {
            int buttonID  = POIButton.GetComponent <ButtonAttribute>().getID();
            var eventArgs = new RemoveQueryDataArgs(buttonID);

            OnPOIRemove(this, eventArgs);
            Debug.Log("Destroying POIButton " + buttonID);

            scrollingObjectCollection.RemoveItem(POIButton);
            Destroy(POIButton);
            scrollingObjectCollection.UpdateCollection();



            // foreach (Transform VARIABLE in transform.GetChild(4).GetChild(1).GetChild(0))
            // {
            //     if (id == VARIABLE.gameObject.GetComponent<ButtonAttribute>().getID())
            //     {
            //         if (VARIABLE.gameObject != null)
            //         {
            //             Destroy(VARIABLE.gameObject);
            //             Invoke("updatePOIButtonCollection",0.5f);
            //         }
            //         return;
            //     }
            // }
        }
Example #2
0
        private void RemoveQueryButton1()
        {
            var eventArgs = new RemoveQueryDataArgs(1);

            OnRemove(this, eventArgs);
            query1_button.SetActive(false);
        }
Example #3
0
        private void RemoveQueryButton0()
        {
            var eventArgs = new RemoveQueryDataArgs(0);

            OnRemove(this, eventArgs);
            query0_button.SetActive(false);

            OptionBackground.SetActive(false); // Set the background panel to false once no options are active
        }