Exemplo n.º 1
0
	public static void Draw(Rect rect, Vector2 offset) {
		if (inst == null) {
			inst = new tk2dGrid();
			inst.InitTexture();
		}
		GUI.DrawTextureWithTexCoords(rect, inst.gridTexture, new Rect(-offset.x / textureSize, (offset.y - rect.height) / textureSize, rect.width / textureSize, rect.height / textureSize), false);
	} 
Exemplo n.º 2
0
 public static void Done()
 {
     if (inst != null) {
         inst.DestroyTexture();
         inst = null;
     }
 }
Exemplo n.º 3
0
 public static void Done()
 {
     if (inst != null)
     {
         inst.DestroyTexture();
         inst = null;
     }
 }
Exemplo n.º 4
0
 public static void Draw(Rect rect, Vector2 offset)
 {
     if (inst == null)
     {
         inst = new tk2dGrid();
         inst.InitTexture();
     }
     GUI.DrawTextureWithTexCoords(rect, inst.gridTexture, new Rect(-offset.x / textureSize, offset.y / textureSize, rect.width / textureSize, rect.height / textureSize), false);
 }