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
{ | |
"editor.fontFamily": "Fira Code Retina, Bitstream Vera Sans Mono, Input Mono, PT Mono, Hack,Code New Roman, Victor Mono,Inconsolata, Operator Mono, Roboto Mono,Office Code Pro, Fantasque Sans Mono,Source Code Pro, Droid Sans Mono, IBM Plex Mono, Anonymous Pro, CamingoCode,'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 13, | |
"editor.lineHeight": 20, | |
"editor.tabSize": 2, | |
"editor.wordWrap": "on", | |
"editor.formatOnSave": true, | |
"window.zoomLevel": 0, | |
"liveServer.settings.donotShowInfoMsg": true, |
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
public static void Shuffle<T>(this IList<T> ts) | |
{ | |
var count = ts.Count; | |
var last = count - 1; | |
for (var i = 0; i < last; ++i) | |
{ | |
var r = UnityEngine.Random.Range(i, count); | |
var tmp = ts[i]; | |
ts[i] = ts[r]; | |
ts[r] = tmp; |
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
//Set Camera on Canvas->Render Camera - Unity 3D | |
void Start() | |
{ | |
Canvas canvas = gameObject.GetComponent<Canvas>(); | |
canvas.renderMode = RenderMode.ScreenSpaceCamera; | |
canvas.worldCamera = Camera.main; | |
} |
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; | |
using System.Collections; | |
public class CameraController : MonoBehaviour | |
{ | |
public GameObject Player; | |
public float suavidade = 2.0f; |
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; | |
using System.Collections; | |
public class FollowCamera : MonoBehaviour { | |
public float interpVelocity; | |
public float minDistance; | |
public float followDistance; | |
public GameObject target; | |
public Vector3 offset; |