Ejemplo n.º 1
0
        bool ValidateReferencedComponents()
        {
            plugin = LarPlugin.Instance;
            if (plugin == null)
            {
                Debug.LogError("Lar Plugin failed to load. Disabling...");
                return(false);
            }

            if (head == null)
            {
                Debug.LogError("Required head gameobject not found! Disabling...");
                return(false);
            }

            if (monoCamera == null && (leftCamera == null || rightCamera == null))
            {
                Debug.LogError("Required eye components are missing! Disabling...");
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
 public virtual void Shutdown()
 {
     LarPlugin.instance = null;
 }