示例#1
0
    // Use this for initialization
    void Start()
    {
        openPTrack = OpenPTrackConsumer.getOpenPTrackConsumer();
        if (openPTrack == null)
        {
            Debug.LogError("MoveFromTrack created before OpenPTrackConsumer.  Fix script execution order.  You can do this via the Unity Menu \'Edit > Project Settings > Script Execution Order\'.");
        }
        openPTrack.addListener(this);

        initalObjectPosition = new Vector3(transform.position.x, transform.position.y, transform.position.z);
    }
示例#2
0
    // start is called by Unity
    public void Start()
    {
        if (theConsumer != null)
        {
            Debug.LogError("Only one OpenPTrackListener should be created");
        }
        else
        {
            theConsumer = this;
        }

        face               = new Face(config.hostName);
        this.prefix        = new Name(config.rootPrefix).append(config.spaceName);
        startTimeComponent = new Name.Component();
        expressInitialInterest();
    }
示例#3
0
 public TrackHandler(OpenPTrackConsumer consumerOuterInstance)
 {
     this.consumerOuterInstance = consumerOuterInstance;
 }
示例#4
0
 public InitialDataHandler(OpenPTrackConsumer consumerOuterInstance)
 {
     this.consumerOuterInstance = consumerOuterInstance;
 }