/**************************************************************************** * Copyright 2019 Nreal Techonology Limited. All rights reserved. * * This file is part of NRSDK. * * https://www.nreal.ai/ * *****************************************************************************/ namespace NRKernal { using System.Collections; using System.Collections.Generic; using UnityEngine; /// A nr phone controller visual. public class NRPhoneControllerVisual : MonoBehaviour, IControllerVisual { /// Destroys the self. public void DestroySelf() { if (gameObject) Destroy(gameObject); } /// Sets an active. /// True if is active, false if not. public void SetActive(bool isActive) { if (!gameObject) return; gameObject.SetActive(isActive); } /// Updates the visual described by state. /// The state. public void UpdateVisual(ControllerState state) { if (!gameObject || !gameObject.activeSelf) return; } } }