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
void Start() | |
{ | |
Coroutine coroutine = StartCoroutine("DelayMethod", 1.0f); | |
} | |
private IEnumerator DelayMethod(float waitTime) | |
{ | |
yield return new WaitForSeconds(waitTime); | |
Debug.Log("StartCoroutine"); | |
} |
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
void Start() | |
{ | |
Coroutine coroutine = StartCoroutine(DelayMethod(1.0f, (int id) => { | |
Debug.Log("StartCoroutine: "+id); | |
}, 0)); | |
} | |
private IEnumerator DelayMethod<T>(float waitTime, Action<T> action, T t) | |
{ | |
yield return new WaitForSeconds(waitTime); |
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
void Start() | |
{ | |
Coroutine coroutine = StartCoroutine(DelayMethod(1.0f, () => { | |
Debug.Log("StartCoroutine"); | |
})); | |
} | |
private IEnumerator DelayMethod(float waitTime, Action action) | |
{ | |
yield return new WaitForSeconds(waitTime); |
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
void Start() | |
{ | |
Invoke("DelayMethod", 1.0f); | |
} | |
void DelayMethod() | |
{ | |
Debug.Log("Invoke"); | |
} |
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
a | |
display: block | |
text-decoration: none | |
color: #777 | |
padding: 0 10px | |
box-sizing: border-box | |
min-width: 80px | |
text-align: center | |
transition: background-color 0.5s ease-out |
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
$(document).on('ready', function() { | |
var $target = $('.js-swipenavigation'); | |
var hasTapEvent = ('ontouchstart' in window); | |
if(hasTapEvent) { | |
$target.find('a').each(function(index, el) { | |
var $el = $(el); | |
$el.addClass('hover-disabled'); | |
$el.on('touchstart', function(event) { | |
$el.addClass('touch'); |
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
.followheader | |
$h: 50px | |
@keyframes enter | |
from | |
top: -$h | |
to | |
top: 0px | |
@keyframes leave | |
from |
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
var element = '.js-followheader'; | |
var lastY = 0; | |
var minY = $(element).height(); | |
$(window).on('scroll', _.throttle(updateScroll, 100)); | |
function updateScroll(e) { | |
var y = $(window).scrollTop(); | |
if (y < lastY) { | |
plugin.scrollUp(y); | |
} else if (y > lastY) { |
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
$(".js-tablesorter").each(function(index, el) { | |
var hasSorter = []; | |
$("th", el).each(function(i, e) { | |
if($(e).data('sorter') != undefined) { | |
var option = { | |
id: i, | |
sorter: $(e).data('sorter') | |
}; | |
hasSorter.push(option); | |
} |
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
GameObject obj = GameObject.Find("Environments") as GameObject; |