本文整理汇总了C#中Tango.TangoApplication.RequestPermissions方法的典型用法代码示例。如果您正苦于以下问题:C# TangoApplication.RequestPermissions方法的具体用法?C# TangoApplication.RequestPermissions怎么用?C# TangoApplication.RequestPermissions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tango.TangoApplication
的用法示例。
在下文中一共展示了TangoApplication.RequestPermissions方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
public void Start()
{
m_tangoApplication = FindObjectOfType<TangoApplication>();
if (m_tangoApplication != null)
{
m_tangoApplication.Register(this);
m_tangoApplication.RequestPermissions();
}
}
示例2: Start
/// <summary>
/// Start is called on the frame when a script is enabled.
/// </summary>
public void Start()
{
m_tangoApplication = FindObjectOfType<TangoApplication>();
m_tangoARScreen = GetComponent<TangoARScreen>();
if (m_tangoApplication != null)
{
if (AndroidHelper.IsTangoCorePresent())
{
// Request Tango permissions
m_tangoApplication.Register(this);
m_tangoApplication.RequestPermissions();
}
else
{
// If no Tango Core is present let's tell the user to install it!
StartCoroutine(_InformUserNoTangoCore());
}
}
else
{
Debug.Log("No Tango Manager found in scene.");
}
}
示例3: Start
/// <summary>
/// Unity Start function.
///
/// This function is responsible for connecting callbacks, set up TangoApplication and initialize the data list.
/// </summary>
public void Start()
{
m_tangoApplication = FindObjectOfType<TangoApplication>();
if (m_tangoApplication != null)
{
m_tangoApplication.Register(this);
if (AndroidHelper.IsTangoCorePresent())
{
m_tangoApplication.RequestPermissions();
}
}
else
{
Debug.Log("No Tango Manager found in scene.");
}
}
示例4: Start
/// <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");
}
}
示例5: Start
/// <summary>
/// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time.
/// </summary>
public void Start()
{
m_meshSavePath = Application.persistentDataPath + "/meshes";
Directory.CreateDirectory(m_meshSavePath);
m_arPoseController = FindObjectOfType<TangoARPoseController>();
m_tangoDynamicMesh = FindObjectOfType<TangoDynamicMesh>();
m_areaDescriptionLoaderPanel.SetActive(true);
m_meshBuildPanel.SetActive(false);
m_meshInteractionPanel.SetActive(false);
m_relocalizeImage.gameObject.SetActive(false);
// Initialize tango application.
m_tangoApplication = FindObjectOfType<TangoApplication>();
if (m_tangoApplication != null)
{
m_tangoApplication.Register(this);
if (AndroidHelper.IsTangoCorePresent())
{
m_tangoApplication.RequestPermissions();
}
}
}
示例6: Start
/// <summary>
/// Start is called on the frame when a script is enabled.
/// </summary>
public void Start()
{
m_tangoApplication = FindObjectOfType<TangoApplication>();
m_characterController = GetComponent<CharacterController>();
if (m_tangoApplication != null)
{
m_tangoApplication.Register(this);
if (AndroidHelper.IsTangoCorePresent())
{
// Request Tango permissions
m_tangoApplication.RequestPermissions();
}
else
{
// If no Tango Core is present let's tell the user to install it!
StartCoroutine(_InformUserNoTangoCore());
}
}
else
{
Debug.Log("No Tango Manager found in scene.");
}
SetPose(transform.position, transform.rotation);
}