Commits

Anonymous committed 7b6f478

線描画機能を追加.gitによる不要ファイルの追跡を取り消し

Comments (0)

Files changed (45)

 *.udp.txt
 
 Temp/*
-Library/*
+unity/Library/
 *.swp
 *.sln
 *.pidb

unity/Assets/MainScene.unity

Binary file modified.

unity/Assets/MyScripts/Main.cs

 	void drawColor()
 	{
 	        Color myColor = new Color();
-            texture.SetPixel(20,20,Color.red);
+            //texture.SetPixel(20,20,Color.red);
+            DrawLine(texture,20,20,300,300,Color.red);
+            DrawLine(texture,300,300,300,20,Color.red);
         	texture.Apply();
 	}
+	void DrawLine(Texture2D a_Texture, int x1, int y1, int x2, int y2, Color a_Color)
+{
+ 
+	float b = x2 - x1;
+	float h = y2 - y1;
+	float l = Mathf.Abs( b );
+	if (Mathf.Abs ( h ) > l) l = Mathf.Abs( h );
+	int il = (int)l;
+	float dx = b / (float)l;
+	float dy = h / (float)l;
+	for ( int i = 0; i <= il; i++ )
+	{
+		a_Texture.SetPixel(x1, y1, a_Color);
+ 
+		x1 += (int)dx;
+		y1 += (int)dy;
+	}
+}
 }

unity/Library/AnnotationManager

Binary file removed.

unity/Library/AssetImportState

-5;0;-1

unity/Library/AssetServerCacheV3

Binary file removed.

unity/Library/AssetVersioning.db

Binary file removed.

unity/Library/BuildPlayer.prefs

Empty file removed.

unity/Library/BuildSettings.asset

Binary file removed.

unity/Library/EditorUserBuildSettings.asset

Binary file removed.

unity/Library/EditorUserSettings.asset

Binary file removed.

unity/Library/FailedAssetImports.txt

Empty file removed.

unity/Library/InspectorExpandedItems.asset

Binary file removed.

unity/Library/MonoManager.asset

Binary file removed.

unity/Library/ScriptAssemblies/Assembly-CSharp.dll

Binary file removed.

unity/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb

Binary file removed.

unity/Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll

Binary file removed.

unity/Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll.mdb

Binary file removed.

unity/Library/ScriptAssemblies/CompilationCompleted.txt

-Completed

unity/Library/ScriptMapper

Binary file removed.

unity/Library/assetDatabase3

Binary file removed.

unity/Library/guidmapper

Binary file removed.

unity/Library/metadata/00/00000000000000001000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000002000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000003000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000004000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000004100000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000005000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000006000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000007000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000008000000000000000

Binary file removed.

unity/Library/metadata/00/00000000000000009000000000000000

Binary file removed.

unity/Library/metadata/00/0000000000000000a000000000000000

Binary file removed.

unity/Library/metadata/00/0000000000000000b000000000000000

Binary file removed.

unity/Library/metadata/00/0000000000000000c000000000000000

Binary file removed.

unity/Library/metadata/08/087def4184ba8fc4390885f9c07075c7

Binary file removed.

unity/Library/metadata/27/27acebc9ad1110f6d00074c88d76c639

Binary file removed.

unity/Library/metadata/3c/3cadc5c144b6941fd9b94e6f6cbaa3cc

Binary file removed.

unity/Library/metadata/5d/5d40091d9b4e5524d9cf73055743fb65

Binary file removed.

unity/Library/metadata/66/6685d213dcd37451eaa7643f63089046

Binary file removed.

unity/Library/metadata/88/885b1972ad11a921d000d37b8d76c639

Binary file removed.

unity/Library/metadata/8a/8a4debc9ad1110f6d00074c88d76c639

Binary file removed.

unity/Library/metadata/ac/ac1120919f0fe7e4eb51aca7706b334e

Binary file removed.

unity/Library/metadata/f7/f7bc945be075dfa469293aa550dbf6b3

Binary file removed.

unity/ProjectSettings/ProjectSettings.asset

Binary file modified.