Beispiel #1
0
    /// <summary>
    /// Register for events at the CloudRecoBehaviour
    /// </summary>
    void Start()
    {
        if (VuforiaConfiguration.Instance.Vuforia.LicenseKey == string.Empty)
        {
            errorTitle = "Cloud Reco Init Error";
            errorMsg   = "Vuforia License Key not found. Cloud Reco requires a valid license.";
            ShowError(errorTitle, errorMsg);
        }

        // Look up the gameobject containing the ImageTargetTemplate:
        mParentOfImageTargetTemplate = ImageTargetTemplate.gameObject;

        // Register this event handler at the cloud reco behaviour
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }

        // Remember cloudRecoBehaviour for later
        mCloudRecoBehaviour = cloudRecoBehaviour;

        // At start we hide the requesting message panel
        SetCloudActivityIconVisible(false);
    }
    // Use this for initialization
    void Start()
    {
        // register this event handler at the cloud reco behaviour

        /*mCloudRecoBehaviour = GetComponent<CloudRecoBehaviour>();
         *
         * if (mCloudRecoBehaviour)
         * {
         *      mCloudRecoBehaviour.RegisterEventHandler(this);
         * }*/

        /* Added ===========================================================================*/
        print("All " + Resources.FindObjectsOfTypeAll <UnityEngine.Object>().Length);

        mParentOfImageTargetTemplate = ImageTargetTemplate.gameObject;

        // register this event handler at the cloud reco behaviour
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }

        // remember cloudRecoBehaviour for later
        mCloudRecoBehaviour = cloudRecoBehaviour;

        /*================================================================================== */

        //LoadingPrefab.SetActive(false);

        loadSignInUPUI();
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        // register this event handler at the cloud reco behaviour

        /*mCloudRecoBehaviour = GetComponent<CloudRecoBehaviour>();
         *
         * if (mCloudRecoBehaviour)
         * {
         *      mCloudRecoBehaviour.RegisterEventHandler(this);
         * }*/

        /* Added ===========================================================================*/

        mParentOfImageTargetTemplate = ImageTargetTemplate.gameObject;

        // register this event handler at the cloud reco behaviour
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }

        // remember cloudRecoBehaviour for later
        mCloudRecoBehaviour = cloudRecoBehaviour;

        /*================================================================================== */
    }
Beispiel #4
0
    /// <summary>
    /// Register for events at the CloudRecoBehaviour
    /// </summary>
    void Start()
    {
        authReference = Firebase.Auth.FirebaseAuth.DefaultInstance;
        authUser      = authReference.CurrentUser;
        if (authUser == null)
        {
            SceneManager.LoadScene("LoginScene");
        }

        storage = Firebase.Storage.FirebaseStorage.DefaultInstance;

        FirebaseApp.DefaultInstance.SetEditorDatabaseUrl("https://card-677f1.firebaseio.com/");

        // Register this event handler at the CloudRecoBehaviour
        m_CloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
        if (m_CloudRecoBehaviour)
        {
            m_CloudRecoBehaviour.RegisterEventHandler(this);
        }

        /*
         * if (m_CloudActivityIcon)
         * {
         *  m_CloudActivityIcon.enabled = false;
         * } */
    }
    /// <summary>
    /// Cloud Reco error UI elements.
    /// </summary>
    // public Canvas m_CloudErrorCanvas;
    // public UnityEngine.UI.Text m_CloudErrorTitle;
    // public UnityEngine.UI.Text m_CloudErrorText;
    // public UnityEngine.UI.Image m_CloudActivityIcon;
    #endregion //PUBLIC_MEMBERS


    #region MONOBEHAVIOUR_METHODS
    /// <summary>
    /// register for events at the CloudRecoBehaviour
    /// </summary>
    void Start()
    {
        if (VuforiaConfiguration.Instance.Vuforia.LicenseKey == string.Empty)
        {
            errorTitle = "Cloud Reco Init Error";
            errorMsg   = "Vuforia License Key not found. Cloud Reco requires a valid license.";
            ShowError(errorTitle, errorMsg);
        }

        // m_TrackableSettings = FindObjectOfType<TrackableSettings>();
        m_CloudContentManager = FindObjectOfType <CloudContentManager>();

        // register this event handler at the cloud reco behaviour
        m_CloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
        if (m_CloudRecoBehaviour)
        {
            m_CloudRecoBehaviour.RegisterEventHandler(this);
        }

        //Grabbing all of the objects
        shows     = GameObject.Find("Shows");
        map       = GameObject.Find("Map");
        countdown = GameObject.Find("Countdown");
        magIssue  = GameObject.Find("MagIssue");
    }
        // Use this for initialization
        void Start()
        {
            floorPlaneImageObjA = GameObject.FindGameObjectWithTag("floorPlanImg");
            floorPlaneImageObjB = GameObject.FindGameObjectWithTag("floorPlanImgA");
//			floorPlaneImageObj.SetActive (showMessage);
            floorPlaneImageObj = floorPlaneImageObjA;
            emojiImage         = GameObject.FindGameObjectWithTag("emoji");
            button3317Obj      = GameObject.FindGameObjectWithTag("available3317");
            button3333Obj      = GameObject.FindGameObjectWithTag("available");
            button3339Obj      = GameObject.FindGameObjectWithTag("unavailable");
            pano3317Image      = GameObject.FindGameObjectWithTag("3317pano");
            pano3333Image      = GameObject.FindGameObjectWithTag("3333pano");
            successMsg         = GameObject.FindGameObjectWithTag("successMsg");
            reserveButton      = GameObject.FindGameObjectWithTag("reserveButton");

            successMsg.SetActive(false);
            reserveButton.SetActive(false);
            emojiImage.SetActive(showMessage);
            pano3317Image.SetActive(showMessage);
            pano3333Image.SetActive(showMessage);
            button3317Obj.SetActive(showMessage);
            button3333Obj.SetActive(showMessage);
            button3339Obj.SetActive(showMessage);

            floorPlaneImageObj.SetActive(showMessage);
            floorPlaneImageObjA.SetActive(showMessage);
            floorPlaneImageObjB.SetActive(showMessage);
            mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour> ();
            if (mCloudRecoBehaviour)
            {
                mCloudRecoBehaviour.RegisterEventHandler(this);
            }
        }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
     if (mCloudRecoBehaviour)
     {
         mCloudRecoBehaviour.RegisterEventHandler(this);
     }
 }
Beispiel #8
0
 // Start is called before the first frame update
 void Start()
 {
     if (cloudRecoBehaviour)
     {
         cloudRecoBehaviour.RegisterEventHandler(this);
     }
     CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
 }
Beispiel #9
0
 // Use this for initialization
 void Start()
 {
     // register this event handler at the cloud reco behaviour
     mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
     if (mCloudRecoBehaviour)
     {
         mCloudRecoBehaviour.RegisterEventHandler(this);
     }
 }
 // Enabling CloudReco deposit's search
 public void StartSearching(Deposit deposit)
 {
     if (mCloudRecoBehaviour)
     {
         this.deposit = deposit;
         mCloudRecoBehaviour.RegisterEventHandler(this);
         mCloudRecoBehaviour.CloudRecoEnabled = true;
     }
 }
Beispiel #11
0
 /// <summary>
 /// Register for events at the CloudRecoBehaviour
 /// </summary>
 void Start()
 {
     // Register this event handler at the CloudRecoBehaviour
     m_CloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
     if (m_CloudRecoBehaviour)
     {
         m_CloudRecoBehaviour.RegisterEventHandler(this);
     }
 }
Beispiel #12
0
    void Start()
    {
        mCloudRecoBehaviour = FindObjectOfType <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
Beispiel #13
0
    //FONCTION AU DEBUT DU SCRIPT//
    void Start()
    {
        mcloudRecoBehaviour = GetComponent <CloudRecoBehaviour>(); // lancement de la reconnaissance cloud

        if (mcloudRecoBehaviour)
        {
            mcloudRecoBehaviour.RegisterEventHandler(this); // lancement des dectections d'évenements selon le scan du marqueur
        }
    }
    // Start is called before the first frame update
    void Start()
    {
        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
        MainPlayer          = GameObject.Find("Player");

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
Beispiel #15
0
    void Start()
    {
        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            Debug.Log("Working?");
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
 private void Start()
 {
     mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
     if ((bool)mCloudRecoBehaviour)
     {
         mCloudRecoBehaviour.RegisterEventHandler(this);
     }
     MainPlayer = GameObject.Find("Player");
     Hide(MainPlayer);
 }
    // Start is called before the first frame update
    void Start()
    {
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }
        mcloudRecoBrhaviour = cloudRecoBehaviour;
    }
    // Use this for initialization
    void Start()
    {
        CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);

        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
Beispiel #19
0
        //---------------------- Unity call back function----------------------------------
        //--------------------------初始化当前脚本变量------------------------------------
        private void Awake()
        {
            cloudrecobehaviour = GetComponent <CloudRecoBehaviour>();
            if (cloudrecobehaviour)
            {
                cloudrecobehaviour.RegisterEventHandler(this);
            }

            sm = Scannermanager.Getinstance();
            Stopscanning();
        }
Beispiel #20
0
    // Use this for initialization
    void Start()
    {
        CloudRecoBehaviour cloudReco = GetComponent <CloudRecoBehaviour>();

        if (cloudReco)
        {
            cloudReco.RegisterEventHandler(this);
        }

        cloud = cloudReco;
    }
    // Use this for initialization
    void Start()
    {
        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }

        Hide(MainVideoPlayer);
    }
Beispiel #22
0
    void Start()
    {
        // register this event handler at the cloud reco behaviour
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }
        mCloudRecoBehaviour = cloudRecoBehaviour;
        GameObject MainImage = GameObject.Find("tableCAB");
    }
    void Start()
    {
        // register this event handler at the cloud reco behaviour
        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
        GameObject friendsCanvas = this.transform.Find("Canvas").GetComponent <Canvas>().gameObject;

        Utility.showHide(friendsCanvas, false);
        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
    // Use this for initialization
    void Start()
    {
        CloudRecoBehaviour cloudReco = GetComponent <CloudRecoBehaviour> ();

        if (cloudReco)
        {
            cloudReco.RegisterEventHandler(this);
        }
        cloud      = cloudReco;
        mainPlayer = GameObject.Find("Player");
        Hide(mainPlayer);
    }
Beispiel #25
0
    void Start()
    {
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }

        mCloudRecoBehaviour = cloudRecoBehaviour;
        scriptUIManager     = FindObjectOfType <UI_Manager> ();
    }
    void Start()

    {
        findgameobject = GameObject.Find("HistoryText");


        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
    /// <summary>
    /// register for events at the CloudRecoBehaviour
    /// </summary>
    void Start()
    {
        m_ScanLine = FindObjectOfType <ScanLine>();
        m_CloudRecoContentManager = FindObjectOfType <CloudRecoContentManager>();
        m_TrackableSettings       = FindObjectOfType <TrackableSettings>();

        // register this event handler at the cloud reco behaviour
        m_CloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();
        if (m_CloudRecoBehaviour)
        {
            m_CloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
Beispiel #28
0
    /// <summary>
    /// register for events at the CloudRecoBehaviour
    /// </summary>
    void Start()
    {
        // register this event handler at the cloud reco behaviour
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }

        // remember cloudRecoBehaviour for later
        mCloudRecoBehaviour = cloudRecoBehaviour;
    }
    /// <summary>
    /// Cloud Reco error UI elements.
    /// </summary>
    //public Canvas cloudErrorCanvas;
    //public UnityEngine.UI.Text cloudErrorTitle;
    //public UnityEngine.UI.Text cloudErrorText;
    #endregion //PUBLIC_MEMBERS


    #region MONOBEHAVIOUR_METHODS
    /// <summary>
    /// register for events at the CloudRecoBehaviour
    /// </summary>
    void Start()
    {
        // look up the gameobject containing the ImageTargetTemplate:
        mParentOfImageTargetTemplate = ImageTargetTemplate.gameObject;

        // register this event handler at the cloud reco behaviour
        CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (cloudRecoBehaviour)
        {
            cloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
Beispiel #30
0
    // Use this for initialization
    void Start()
    {
        log = "Start= " + System.DateTime.Now.ToString("hh:mm:ss.fff");
        // register this event handler at the cloud reco behaviour
        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }

        InitializeGameObjects();
    }
Beispiel #31
0
 // Use this for initialization
 void Start()
 {
     // register this event handler at the cloud reco behaviour
     mCloudRecoBehaviour = GetComponent<CloudRecoBehaviour>();
     if (mCloudRecoBehaviour)
     {
         mCloudRecoBehaviour.RegisterEventHandler(this);
     }
 }
Beispiel #32
0
 void Start()
 {
     mCloudRecoBehaviour = GetComponent<CloudRecoBehaviour>();
     if (mCloudRecoBehaviour)
     {
         mCloudRecoBehaviour.RegisterEventHandler(this);
     }
 }