Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            GridObject g = grid.GetGridObject(MouseUtils.GetMousePosition3D());
        }
        if (Input.GetMouseButtonDown(1))
        {
            Vector3 mousePos = MouseUtils.GetMousePosition3D();

            if (mousePos.magnitude != 0)
            {
                TextCreator.CreatePopupText(mousePos.ToString(), 10, 1, null, mousePos, Camera.main);
            }
        }
    }