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 TiltSingleBehaviour : StateMachineBehaviour { | |
public string xParameter = "tiltX"; | |
public float minInterval = 1.0f; | |
public float maxInterval = 4.0f; | |
public float minValue = -1f; |
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 TiltBehaviour : StateMachineBehaviour { | |
public string xParameter = "tiltX"; | |
public string yParameter = "tiltY"; | |
public float minInterval = 1.0f; | |
public float maxInterval = 4.0f; | |
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
#!/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
<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