Skip to content

Commit

Permalink
弥补git失误
Browse files Browse the repository at this point in the history
  • Loading branch information
Lixue9jiu committed Apr 21, 2018
1 parent 3018a90 commit ff44947
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/_Scripts/Core/CameraController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void SetCursorLocked(bool isLocked)
#if !MOBILE_INPUT
if (isLocked)
{
Cursor.lockState = CursorLockMode.Confined;
Cursor.lockState = CursorLockMode.Locked;
}
else
{
Expand Down
26 changes: 23 additions & 3 deletions Assets/_Scripts/TerrainMesh/TerrainMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ public class TerrainMesh {
List<Vector2> uvs = new List<Vector2>();
List<Color> colors = new List<Color>();

public void GenerateCube()
{

}

public void PushToMesh(out MeshData data)
{
Expand Down Expand Up @@ -41,6 +44,11 @@ private void VerticesFromRect(Vector3 a, Vector3 b, Vector3 c, Vector3 d)
triangles.Add(count + 3);
triangles.Add(count);
}

public void GetCellFace(int x, int y, int z, int face)
{

}
}

public struct CellFace
Expand All @@ -53,9 +61,21 @@ public struct CellFace
public const int LEFT = 5;

public int Face;
public int x;
public int y;
public int z;
public int TextureSlot;

public CellFace(Block block, int _value, int _face)
{
Face = _face;
TextureSlot = block.GetTextureSlot (_value, _face);
}

public override bool Equals (object obj)
{
return (obj is CellFace) && Equals ((CellFace)obj);
}

public bool Equals(CellFace face)
{
return face.Face == Face;
}
}
Binary file modified ProjectSettings/GraphicsSettings.asset
Binary file not shown.
Binary file modified ProjectSettings/ProjectSettings.asset
Binary file not shown.

0 comments on commit ff44947

Please sign in to comment.