[OrderNumber]_[SceneName]_[OptionalQualifier]
Examples:
00_Bootstrap
public void QuitGame() { | |
Debug.Log("QuitGame()"); | |
#if UNITY_EDITOR | |
UnityEditor.EditorApplication.isPlaying = false; | |
#else | |
Application.Quit(); | |
#endif | |
} |
delay = .1; | |
myDelay = delay*textIndex; | |
t = (time - inPoint) - myDelay; | |
if (t>=0){ | |
freq =3; | |
amplitude = 150; | |
decay = 8.0; | |
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t); | |
{s,s} | |
}else{ |
.box-100 { | |
width:100px; | |
height:100px; | |
} | |
/* Colors */ | |
.amber, | |
.hover-amber:hover { | |
background-color: #ffc107 !important | |
} |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
public class DimensionsTool : EditorWindow { | |
Bounds bounds = new Bounds(); | |
long polygons = 0; | |
int count = 0; | |
bool drawBox = false; |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
public class PolyCount : EditorWindow { | |
long numPolys = 0; | |
bool deep = false; | |
bool showList = false; | |
Vector2 scroll = new Vector2(); |
//http://answers.unity3d.com/questions/21417/my-car-keeps-fliping-over-i-have-an-idea-how-to-fi.html | |
using UnityEngine; | |
using System.Collections; | |
public class AntiRollBar : MonoBehaviour { | |
public WheelCollider wheelL; | |
public WheelCollider wheelR; | |
public float antiRollVal = 5000f; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
10+ handy and reusable jQuery code snippetsPublished on January 21st, 2014 by Jean-Baptiste Jung. 1 Comment - | |
Over the years, jQuery became a must-use for every web developer. It is simple to use, fast and very powerful. In this article I have put together a series of 10+ handy jQuery code snippets you may save and copy to use at your own discretion. These snippets are super easy to adapt to match your own script. | |
Smooth scrolling to top of pageLet’s start this list by a very popular and useful snippet: Those 4 lines will allow your visitors to smooth scrool to the top of the page simply by clicking a a link (with #top id) located at the bottom of your page. | |
$("a[href='#top']").click(function() { | |
$("html, body").animate({ scrollTop: 0 }, "slow"); | |
return false; | |
}); |