Example #1
0
    bool ValidateReferencedComponents()
    {
        plugin = SvrPlugin.Instance;
        if (plugin == null)
        {
            Debug.LogError("Svr Plugin failed to load. Disabling...");
            return(false);
        }

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

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

        return(true);
    }
Example #2
0
 public virtual void Shutdown()
 {
     SvrPlugin.instance = null;
 }