浏览代码

Merge pull request #43 from unity/fix-unreachable-code

Fix unreachable code warning
/3.1
Tim Mowrer 4 年前
当前提交
260687b9
共有 1 个文件被更改,包括 6 次插入11 次删除
  1. 17
      Assets/Scenes/LightEstimation/PlatformSelector.cs

17
Assets/Scenes/LightEstimation/PlatformSelector.cs


set => m_WorldSpaceObject = value;
}
void OnEnable()
{
const bool k_PlatformIsIOS = true;
GetComponent<ARFaceManager>().enabled = true;
const bool k_PlatformIsIOS = false;
GetComponent<ARFaceManager>().enabled = false;
worldSpaceObject?.SetActive(true);
Application.onBeforeRender += OnBeforeRender;
void OnEnable()
{
GetComponent<ARFaceManager>().enabled = k_PlatformIsIOS;
if (!k_PlatformIsIOS)
{
worldSpaceObject?.SetActive(true);
Application.onBeforeRender += OnBeforeRender;
}
}
void OnDisable()

正在加载...
取消
保存