public void StopFindPlanes() { isStart = false; FindPlane.StopFind(); Debug.Log("Stop Find"); Material material = Resources.Load <Material>("Trigrid_green"); dynamicButton.GetComponentInChildren <Text>().text = "START"; }
public void StartFindPlanes() { isStart = true; foreach (var plane in trackedPlane) { plane.destroySelf(); } trackedPlane.Clear(); foreach (var obj in trackedGameObj) { GameObject.Destroy(obj); } trackedGameObj.Clear(); FindPlane.SetCallBack(s_CallBack); FindPlane.StartFind(); Debug.Log("Start Find"); dynamicButton.GetComponentInChildren <Text>().text = "STOP"; }
void Start() { FindPlane.SetMovEnable(true); s_CallBack = FindPlanesCallBackFunc; }