void PlacedObject() { if (m_ShowingTapToPlace) { if (tapToPlaceAnimation) { tapToPlaceAnimation.SetTrigger(k_FadeOffAnim); TextTap.SetActive(false); } m_ShowingTapToPlace = false; } }
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; } }