コード例 #1
0
ファイル: tk2dGrid.cs プロジェクト: Eddikos/public-access-1
	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);
 }