Exemplo n.º 1
0
        //on start initialize the interface and try to connect to Adress:Port
        void Start()
        {
            zmq = new ZmqInterface <miVRlink.ResetStatusMessage>();
            zmq.init(Address, Port);

            ResetServiceHandler.AddService(this);
        }
    void Awake()
    {
        //if(current == null)
        {
            DontDestroyOnLoad(this);
            //current = this;
            zmq     = new ZmqInterface <miVRlink.Position6DofMessage>();
            running = true;
        }

        ControllerHandler.AddTracker(this);

        if (Address != "" && Port > 0)
        {
            Init(Address, Port);
        }
    }