Skip to content

Commit 1c3e252

Browse files
committed
add new gitignore for new testie
1 parent 9fbc02c commit 1c3e252

7 files changed

Lines changed: 92 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
namespace seyahdoo.controlls
6+
{
7+
8+
public class SuperSimpleMouseCameraRotator : MonoBehaviour
9+
{
10+
11+
void Update()
12+
{
13+
14+
transform.localEulerAngles += new Vector3(-Input.GetAxis("Mouse Y"), Input.GetAxis("Mouse X"), 0);
15+
16+
}
17+
18+
}
19+
20+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using UnityEngine;
2+
using System.Collections;
3+
4+
namespace seyahdoo.other
5+
{
6+
7+
[RequireComponent(typeof(MeshFilter))]
8+
public class ReverseNormals : MonoBehaviour
9+
{
10+
11+
void Start()
12+
{
13+
MeshFilter filter = GetComponent(typeof(MeshFilter)) as MeshFilter;
14+
if (filter != null)
15+
{
16+
Mesh mesh = filter.mesh;
17+
18+
Vector3[] normals = mesh.normals;
19+
for (int i = 0; i < normals.Length; i++)
20+
normals[i] = -normals[i];
21+
mesh.normals = normals;
22+
23+
for (int m = 0; m < mesh.subMeshCount; m++)
24+
{
25+
int[] triangles = mesh.GetTriangles(m);
26+
for (int i = 0; i < triangles.Length; i += 3)
27+
{
28+
int temp = triangles[i + 0];
29+
triangles[i + 0] = triangles[i + 1];
30+
triangles[i + 1] = temp;
31+
}
32+
mesh.SetTriangles(triangles, m);
33+
}
34+
}
35+
}
36+
}
37+
38+
}
103 KB
Binary file not shown.
606 Bytes
Binary file not shown.

Packages/UniGif.unitypackage

18.4 KB
Binary file not shown.
22.5 MB
Binary file not shown.

Testie/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/[Ll]ibrary/
2+
/[Tt]emp/
3+
/[Oo]bj/
4+
/[Bb]uild/
5+
/[Bb]uilds/
6+
/Assets/AssetStoreTools*
7+
8+
# Visual Studio 2015 cache directory
9+
/.vs/
10+
11+
# Autogenerated VS/MD/Consulo solution and project files
12+
ExportedObj/
13+
.consulo/
14+
*.csproj
15+
*.unityproj
16+
*.sln
17+
*.suo
18+
*.tmp
19+
*.user
20+
*.userprefs
21+
*.pidb
22+
*.booproj
23+
*.svd
24+
*.pdb
25+
26+
# Unity3D generated meta files
27+
*.pidb.meta
28+
29+
# Unity3D Generated File On Crash Reports
30+
sysinfo.txt
31+
32+
# Builds
33+
*.apk
34+
*.unitypackage

0 commit comments

Comments
 (0)