/// <summary>
    /// Unity Start function.
    ///
    /// This function is responsible for initialization, including setting up m_fileSender and joining or creating a
    /// Photon room.
    /// </summary>
    public void Start()
    {
        m_cubeSize = m_cubePrefab[0].transform.lossyScale.x;

        m_progressPanel.SetActive(false);
        m_tangoApplication = FindObjectOfType <TangoApplication>();
        if (m_tangoApplication == null)
        {
            _QuitGame();
        }

        m_tangoApplication.Register(this);
        m_tangoApplication.RequestPermissions();

        m_fileSender = GetComponent <RPCFileSender>();
        m_fileSender.OnPackageReceived         += _OnAreaDescriptionTransferReceived;
        m_fileSender.OnPackageTransferFinished += _OnAreaDescriptionTransferFinished;
        m_fileSender.OnPackageTransferStarted  += _OnAreaDescriptionTransferStarted;
        m_fileSender.OnPackageTransferError    += _OnAreaDescriptionTransferError;

        if (!PhotonNetwork.insideLobby)
        {
            AndroidHelper.ShowAndroidToastMessage("Please wait to join the room until you are in lobby.");
            return;
        }

        if (Globals.m_curAreaDescription == null)
        {
            PhotonNetwork.JoinRandomRoom();
        }
        else
        {
            PhotonNetwork.CreateRoom("Random Room");
        }
    }
    /// <summary>
    /// Unity Start function.
    ///
    /// This function is responsible for initialization, including setting up m_fileSender and joining or creating a
    /// Photon room.
    /// </summary>
    public void Start()
    {
        m_cubeSize = m_cubePrefab[0].transform.lossyScale.x;

        m_progressPanel.SetActive(false);
        m_tangoApplication = FindObjectOfType<TangoApplication>();
        if (m_tangoApplication == null)
        {
            _QuitGame();
        }

        m_tangoApplication.Register(this);
        m_tangoApplication.RequestPermissions();

        m_fileSender = GetComponent<RPCFileSender>();
        m_fileSender.OnPackageReceived += _OnAreaDescriptionTransferReceived;
        m_fileSender.OnPackageTransferFinished += _OnAreaDescriptionTransferFinished;
        m_fileSender.OnPackageTransferStarted += _OnAreaDescriptionTransferStarted;
        m_fileSender.OnPackageTransferError += _OnAreaDescriptionTransferError;

        if (!PhotonNetwork.insideLobby)
        {
            AndroidHelper.ShowAndroidToastMessage("Please wait to join the room until you are in lobby.");
            return;
        }
        
        if (Globals.m_curAreaDescription == null)
        {
            PhotonNetwork.JoinRandomRoom();
        }
        else
        {
            PhotonNetwork.CreateRoom("Random Room");
        }
    }