Exemple #1
0
    public void StopFindPlanes()
    {
        isStart = false;
        FindPlane.StopFind();
        Debug.Log("Stop Find");
        Material material = Resources.Load <Material>("Trigrid_green");

        dynamicButton.GetComponentInChildren <Text>().text = "START";
    }
Exemple #2
0
    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";
    }
Exemple #3
0
 void Start()
 {
     FindPlane.SetMovEnable(true);
     s_CallBack = FindPlanesCallBackFunc;
 }