Ejemplo n.º 1
0
	// Use this for initialization    
    public override void utInit(Ubitrack.SimpleFacade simpleFacade)
    {
        base.utInit(simpleFacade);
        
        		
		switch(ubitrackEvent)
		{
		case UbitrackEventType.Pull:{
            m_positionPull = simpleFacade.getPullSinkPosition3D(patternID);
            m_simplePosition = new SimplePosition3D();
			 	if (m_positionPull == null)
			    {
                    throw new Exception("SimpleApplicationPullSinkPosition3D not found for poseID:" + patternID);
			    }
				break;
			}
		case UbitrackEventType.Push:{
            m_positionReceiver = new UnityPositionReceiver();

            if (!simpleFacade.set3DPositionCallback(patternID, m_positionReceiver))
				{
                    throw new Exception("UnityPositionReceiver could not be set for poseID:" + patternID);
				}
              
				break;
			}
		default:
		break;
		}    		
	}
Ejemplo n.º 2
0
    public override void utInit(Ubitrack.SimpleFacade simpleFacade)
    {
        base.utInit(simpleFacade);
        m_dummy = simpleFacade.getPullSinkPosition3D(patternID);
        if (m_dummy == null)
        {
            throw new Exception("SimpleApplicationPushSourceButton not found for ID:" + patternID);
        }
		 this.m_screenHeight = Screen.height;
         this.m_screenWidth = Screen.width;
		//initTexture();
    }