public void CheckMouse()
    {
        bool mouseValid = false;

        for (int x = 0; x < sizeX; x++)
        {
            for (int y = 0; y < sizeY; y++)
            {
                for (int z = 0; z < sizeZ; z++)
                {
                    if (grid[x, y, z].mouseOver)
                    {
                        mouseValid = true;
                        heroTest.DrawPath(grid[x, y, z].transform.position);
                        break;
                    }
                }
            }
        }

        if (!mouseValid)
        {
            heroTest.DestroyPath();
        }
    }
    public void CheckMouse()
    {
        bool mouseValid = false;

        for (int x = 0; x < sizeX; x++)
        {
            for (int y = 0; y < sizeY; y++)
            {
                for (int z = 0; z < sizeZ; z++)
                {
                    if (grid[x, y, z].mouseOver)
                    {
                        mouseValid = true;
                        grid[x, y, z].mat.color = Color.white;
                        activeHero.DrawPath(grid[x, y, z].transform.position);
                        break;
                    }
                }
            }
        }

        if (!mouseValid)
        {
            activeHero.DestroyPath();
        }
    }