This file contains 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 LayerMaskUtil { | |
public static bool CheckLayer(int layer, LayerMask layerMask) | |
{ | |
return (layerMask.value & (1 << layer)) != 0; | |
} | |
} |
This file contains 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; | |
using System.Text; | |
/** | |
* WebLocationChecker by @andyman404 | |
* Licensed under Creative Commons Zero (do with it as you want, no credit needed) | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
* This script site-locks your Unity Webplayer/WebGL build. |
This file contains 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
#!/bin/bash | |
echo "USAGE" | |
echo "convert_to_gif.sh <video_file_name> <frames_per_second> <width> <start_second> <duration>" | |
echo "--------------------" | |
# from here: | |
# http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality | |
INPUT_FILE=$1 |
This file contains 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
#!/bin/bash | |
echo "USAGE" | |
echo "convert_to_gif.sh <video_file_name> <frames_per_second>" | |
echo "--------------------" | |
# from here: | |
# http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality | |
# add the "-ss 2 -t 6" arguments after the ffmpeg to skip 2 seconds and have a duration of 6 secs | |
This file contains 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; | |
using System.Text; | |
/** Add this script to an object in the first scene of your game. | |
* It doesn't do anything for non-webplayer builds. For webplayer | |
* builds, it checks the domain to make sure it contains at least | |
* one of the strings, or it will redirect the page to the proper | |
* URL for the game. | |
*/ |
This file contains 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
<color="yellow">SAMPLE END CREDITS</color> | |
<color="cyan">DESIGNED AND CREATED BY</color> | |
Alan Aardvark | |
Betty Beetle | |
Charlie Clownfish | |
<color="cyan">PROGRAMMING</color> | |
Daniel Dolphin | |
Ellen Eagle |
This file contains 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 UnityEngine.UI; | |
using System.Collections; | |
public class ShowScreenArrow : MonoBehaviour { | |
public Transform target; | |
RectTransform rect; | |
Image image; |
This file contains 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
#!/bin/bash | |
# how many seconds to sleep for between quits | |
SLEEPTIME=5 | |
for((i=0;i<60;i+=SLEEPTIME)) | |
do | |
osascript -e 'tell application "Mail" to quit' > /dev/null 2>&1 | |
sleep $SLEEPTIME | |
done |
NewerOlder