Пример #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);
	} 
Пример #2
0
 public static void Done()
 {
     if (inst != null) {
         inst.DestroyTexture();
         inst = null;
     }
 }
Пример #3
0
 public static void Done()
 {
     if (inst != null)
     {
         inst.DestroyTexture();
         inst = null;
     }
 }
Пример #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);
 }