Exemple #1
0
    /// <summary>
    /// Update is called once per frame.
    /// </summary>
    private void Update()
    {
        if (!GameManager.Instance.GameOver)
        {
            /*
             * Vector2Int coord = grid.GetCellFromWorldPos(go.transform.position);
             * Value = grid.GetCellCenterWorld(coord, defaultYAxis: false);
             * text.text = "CellPos: " + Value + "\nGrid: " + grid.GetCellFromWorldPos(Value);
             * //text.text = seconds + "." + secondHundreths + " s";
             */

            /*
             * Value = Input.mousePosition;
             * text.text = "MousePos: " + Value;
             */

            text.text = objPlacer.GetPlacementInfo();
        }
    }
Exemple #2
0
 private void DisplayPlacementInfo()
 {
     GUILayout.Label(targetObjectPlacer.GetPlacementInfo());
 }