Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        if (RobotConnector == null)
        {
            RobotConnector = gameObject.GetComponent <RobotConnectionComponent> ();
        }

        if (Configuration == null)
        {
            _customConfigurations = true;
            Configuration         = gameObject.AddComponent <TELUBeeConfiguration> ();
        }
        else
        {
            _customConfigurations = false;
        }

        Init();

        if (Debugger != null)
        {
            //		Debugger.AddDebugElement(new DebugCameraSettings(Configuration));
        }


        RobotConnector.AddDependencyNode(this);

        //	GStreamerCore.Ref ();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        Application.targetFrameRate = TargetFrameRate;
        if (OculusCamera == null)       //Try to find OVRCameraRig component
        {
            OculusCamera = GameObject.FindObjectOfType <OVRCameraRig> ();
        }

        if (RobotConnector == null)
        {
            RobotConnector = gameObject.GetComponent <RobotConnectionComponent> ();
        }

        if (Configuration == null)
        {
            _customConfigurations = true;
            Configuration         = gameObject.AddComponent <TELUBeeConfiguration> ();
        }
        else
        {
            _customConfigurations = false;
        }

        Init();

        if (Debugger != null)
        {
            //		Debugger.AddDebugElement(new DebugCameraSettings(Configuration));
        }


        RobotConnector.AddDependencyNode(this);

        //	GStreamerCore.Ref ();
    }
Esempio n. 3
0
 public DebugCameraSettings(TELUBeeConfiguration r)
 {
     Config = r;
 }
    // Use this for initialization
    void Start()
    {
        Application.targetFrameRate = TargetFrameRate;
        if(OculusCamera==null)	//Try to find OVRCameraRig component
            OculusCamera = GameObject.FindObjectOfType<OVRCameraRig> ();

        if (Configuration == null)
            Configuration = gameObject.AddComponent<TELUBeeConfiguration>();

        if(TargetMaterial!=null)
            Init();

        RobotConnector.AddDependencyNode (this);

        GStreamerCore.Ref ();
    }