old android skd manager https://dl.google.com/android/installer_r24.4.1-windows.exe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (Input.GetKeyDown(KeyCode.P)) | |
| { | |
| // check screenshots folder | |
| var outputFolder = Path.Combine(Application.dataPath, "Screenshots"); | |
| if (Directory.Exists(outputFolder) == false) | |
| { | |
| Directory.CreateDirectory(outputFolder); | |
| } | |
| DateTime foo = DateTime.UtcNow; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static Random random = new Random(); | |
| static readonly string chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 -"; | |
| static string GetRandomCharacters(int len) | |
| { | |
| string str = ""; | |
| for (int i = 0; i < len; i++) | |
| { | |
| str += chars[random.Next(len)]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class LookTowardsPlayerOneAxis : MonoBehaviour | |
| { | |
| public Transform target; | |
| void LateUpdate() | |
| { | |
| // note Y position is set to current | |
| Vector3 targetPos = new Vector3(target.position.x, transform.position.y, target.position.z); | |
| // look away | |
| transform.LookAt(2 * transform.position - targetPos); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ▓▓▓▓▓▒▒▒▒▒░░░░░ YES ░░░░░▒▒▒▒▒▓▓▓▓▓ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // adjustable player values | |
| public class PlayerData | |
| { | |
| public float speed; | |
| public override string ToString() | |
| { | |
| return "speed: "+ speed; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://answers.unity.com/answers/1211896/view.html | |
| // Usage: Add Text Mesh, Add font to text mesh (important, so that you can see where the font texture atlas is) | |
| // Assign this material-shader to textmesh, assign font atlas texture to material | |
| Shader "GUI/3D Text Shader" { | |
| Properties { | |
| _MainTex ("Font Texture", 2D) = "white" {} | |
| _Color ("Text Color", Color) = (1,1,1,1) | |
| } | |
| SubShader { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "Name": "OVRServer_x64", | |
| "Exe": "OVRServer_x64.txt", | |
| "DefaultPath": "", | |
| "Description": "Oculus Desktop", | |
| "Url": "" | |
| }, | |
| { | |
| "Name": "pageant", |