|
|
|
|
|
|
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() |
|
|
|