Exemplo n.º 1
0
    private static void SortOutCubeScriptShit(Vector3 GridLoc, CubeLocationScript cubeScript)
    {
        // If cube is movable or not
        if (cubeScript.CubeMoveable)
        {
            LocationManager.SetCubeScriptToLocation_CLIENT(GridLoc, cubeScript);
        }
        else
        {
            LocationManager.SetCubeScriptToHalfLocation_CLIENT(GridLoc, cubeScript);
        }

        // for layering system
        LayerManager.AddCubeToLayer(cubeScript);
    }