Ejemplo n.º 1
0
 private void StartGame()
 {
     AverageWorldOrigin();
     _arPlaneManger.enabled = false;
     _arPlanes = GameObject.FindGameObjectsWithTag("ARPlane");
     foreach (GameObject ARPlane in _arPlanes)
     {
         ARPlane.SetActive(false);
     }
     _arPlacementManager.DeactivatePlacement();
     _arDebugManager.LogInfo($"StartGame");
 }
Ejemplo n.º 2
0
 private void PlaceObject()
 {
     if (tabCounter == 0)
     {
         Debug.Log("Instantiate gameBase");
         Instantiate(gameBase, indicator.position, indicator.rotation);
         tabCounter            += 1;
         _arPlaneManger.enabled = false;
         _arPlanes = GameObject.FindGameObjectsWithTag("ARPlane");
         foreach (GameObject ARPlane in _arPlanes)
         {
             ARPlane.SetActive(false);
         }
     }
     // else
     // {
     //     Instantiate(cubes[0], new Vector3(indicator.position.x, indicator.position.y + 20, indicator.position.z), indicator.rotation);
     //     tabCounter += 1;
     // }
 }