Exemplo n.º 1
0
 private void Awake()
 {
     Instance        = this;
     unityWorldRatio = new Vector3(0.1f, 0.1f, 0.1f);
     markers         = new List <GameObject>();
     rsc             = gameObject.AddComponent(typeof(GoogleAltitudeController)) as GoogleAltitudeController;
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        BeatSource      = this.GetComponent <AudioSource>();
        BeatSource.clip = BeatClip;
        beatMarker      = beatUI.GetComponent <MarkerController>();
        beatTransform   = beatUI.GetComponent <RectTransform>();

        firstNotePlayed = false;
    }
Exemplo n.º 3
0
 // if the touch is a long press, Place a marker at the finger position
 private void handleLongTouch(Touch touch)
 {
     if (!assigned)
     {
         if (joyStickTouchID != touch.fingerId)
         {
             GameObject       potentialMarker = new GameObject(name: "Potential Marker");
             MarkerController newMarker       = potentialMarker.AddComponent <MarkerController> ();
             newMarker.validTouchID = validTouchID;
             assigned = true;
         }
     }
 }
    private void OnEnable()
    {
        controller = GetComponent <SteamVR_TrackedController>();
        controller.TriggerClicked   += HandleTriggerClicked;
        controller.TriggerUnclicked += HandleTriggerUnclicked;

        HeldItemDescription = GetComponentInChildren <DesciptionTextController>();
        MarkerColor         = GetComponentInChildren <MarkerController>();

        controllerCarryState = CarryingState.Empty;

        Physics.IgnoreCollision(DataSetManager.GetComponent <Collider>(), GetComponent <Collider>());
    }
Exemplo n.º 5
0
        public void SetUp()
        {
            mockMarker      = new Mock <DbSet <Marker> >();
            mockDataContext = new Mock <TravelAppContext>();
            mockDataContext.Setup(m => m.Markers).Returns(mockMarker.Object);
            sut    = new MarkerController();
            sut.db = mockDataContext.Object;

            marker1 = new Marker
            {
                Date       = new DateTime(2014, 12, 12),
                Dislikes   = "User 1 Dislikes",
                Experience = "User 1 Experience",
                Latitude   = 1.0d,
                Longitude  = 2.0d
            };
        }
 void Start()
 {
     if (!m_MarkerController)
     {
         m_MarkerController = FindObjectOfType <MarkerController>();
     }
     if (!m_LoginManager)
     {
         m_LoginManager = FindObjectOfType <LoginManager>();
     }
     if (!m_MarkerUIPresenter)
     {
         m_MarkerUIPresenter = FindObjectOfType <MarkerUIPresenter>();
     }
     m_MarkerController.ProjectLinkSource = this;
     m_MarkerController.BarcodeDataParser = this;
     QueryArgHandler.Register(this, k_MarkerKey, SetHandler, GetHandler);
 }