本文整理汇总了C#中BinaryReader.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryReader.ToString方法的具体用法?C# BinaryReader.ToString怎么用?C# BinaryReader.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BinaryReader
的用法示例。
在下文中一共展示了BinaryReader.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
/// <summary>
/// Use this for initialization.
/// </summary>
public void Start()
{
m_isDirty = false;
m_initCameraPosition = m_mainCamera.transform.position;
m_coordinatePair.baseFrame = TangoEnums.TangoCoordinateFrameType.TANGO_COORDINATE_FRAME_START_OF_SERVICE;
m_coordinatePair.targetFrame = TangoEnums.TangoCoordinateFrameType.TANGO_COORDINATE_FRAME_DEVICE; // FIX should be depth sensor
m_cubes = new GameObject[m_insertionCount];
float size = 0.02f;
for (int i = 0; i < m_insertionCount; i++)
{
m_cubes[i] = (GameObject)GameObject.CreatePrimitive(PrimitiveType.Cube);
m_cubes[i].transform.localScale = new Vector3(size, size, size);
m_cubes[i].transform.parent = transform;
}
syntheticRoom.SetActive(m_syntheticData);
ClearLivePreviewCubes();
#if UNITY_ANDROID && !UNITY_EDITOR
if (m_recordData)
{
PrepareRecording();
}
#endif
if (m_playbackData)
{
m_recordData = false;
string filename = m_recordingID + ".dat";
m_fileReader = new BinaryReader(File.Open(Application.persistentDataPath + "/" + filename, FileMode.Open));
m_debugText = "Loading from: " + filename + " " + m_fileReader.ToString();
}
m_tangoApplication = FindObjectOfType<TangoApplication>();
m_tangoApplication.Register(this);
if (m_testData)
{
GenerateTestData();
}
}