Exemplo n.º 1
0
        void Update()
        {
            if (scanButton.isActiveAndEnabled == true)
            {
                foreach (Transform child in gameObject.transform)
                {
                    child.gameObject.GetComponent <LeanSelectable>().enabled = false;
                }
            }

            if (scanButton.isActiveAndEnabled == false)
            {
                DeselectOnTimeChange();

                if (isDetecting == true)
                {
                    foreach (Transform child in gameObject.transform)
                    {
                        child.gameObject.GetComponent <LeanSelectable>().enabled = false;
                    }

                    ARPlaceObjectsOnPlane();
                }

                if (isDetecting == false)
                {
                    ShadowPlane.ShowShadowPlane(floor, wall1, wall2);

                    foreach (Transform child in gameObject.transform)
                    {
                        child.gameObject.GetComponent <LeanSelectable>().enabled = true;

                        //if(child.gameObject.GetComponent<LeanSelectable>().IsSelected == true)
                        //{
                        //    placeButton.gameObject.SetActive(true);
                        //}
                    }
                }
            }
        }
Exemplo n.º 2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ShadowPlane obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }