Esempio n. 1
0
    void PlacedObject()
    {
        if (m_ShowingTapToPlace)
        {
            if (tapToPlaceAnimation)
            {
                tapToPlaceAnimation.SetTrigger(k_FadeOffAnim);
                TextTap.SetActive(false);
            }

            m_ShowingTapToPlace = false;
        }
    }
Esempio n. 2
0
    void FrameChanged(ARCameraFrameEventArgs args)
    {
        if (PlanesFound() && m_ShowingMoveDevice)
        {
            if (moveDeviceAnimation)
            {
                moveDeviceAnimation.SetTrigger(k_FadeOffAnim);
            }

            if (tapToPlaceAnimation)
            {
                tapToPlaceAnimation.SetTrigger(k_FadeOnAnim);
                MoveDeviceAnimPanel.SetActive(false);
                TextTap.SetActive(true);
            }

            m_ShowingTapToPlace = true;
            m_ShowingMoveDevice = false;
        }
    }