Ejemplo n.º 1
0
    IEnumerator PlayingStateRoutine()
    {
        // Hide the spatial mapping mesh
        // Display player score and darts
        // Spawn the dart for the player

        Debug.Log("Hiding Spatial Mapping meshes: Enjoy playing!");
        SpatialMappingManager.Instance.SurfacesVisible = false;
        GazeManager.Instance.RaycastLayerMask          = LayerMask.GetMask("SpatialSurface", "Hologram", "UI");

        while (!GameOver)
        {
            if (Dart == null || Dart.GetComponent <Throwable>().HasLanded == true)
            {
                Dart = SpawnDart();
            }
            yield return(null);
        }

        CurrentState = GameState.GameOver;
    }
Ejemplo n.º 2
0
 public void AddPoints()
 {
     points += Dart.GetComponent <DartThrow>().CountPoints();
     //Score.GetComponent<GUIText>().text = points.ToString();
 }