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; | |
| /* | |
| * Most functions taken from Tween.js - Licensed under the MIT license | |
| * at https://github.com/sole/tween.js | |
| * Quadratic.Bezier by @fonserbc - Licensed under WTFPL license | |
| */ | |
| public delegate float EasingFunction(float k); | |
| public class Easing |
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
| // Rotate sprite/object towards mouse | |
| // Reference: http://johnstejskal.com/wp/rotating-objects-and-sprites-in-unity3d-using-cs-c/ | |
| // https://forum.unity3d.com/threads/how-to-detect-angle-from-one-object-to-another-in-2d.477510/ | |
| // Usage: Attach this script to sprite, use Orthographic camera! | |
| using UnityEngine; | |
| using System.Collections; | |
| public class RotateSpriteTowardsMouse : MonoBehaviour | |
| { |
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
| Shader "Sprites/Cutout" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _Color ("Tint", Color) = (1,1,1,1) | |
| [MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
| _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.5 | |
| } |
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
| /* | |
| Tween for Unity by Alec Holowka | |
| http://InfiniteAmmo.com - @infinite_ammo | |
| */ | |
| using UnityEngine; | |
| using System.Collections; | |
| public class TweenBase : MonoBehaviour | |
| { |
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
| /* | |
| SpriteAnimator for Unity by Alec Holowka | |
| http://InfiniteAmmo.com - @infinite_ammo | |
| */ | |
| using UnityEngine; | |
| using System.Collections; | |
| public class SpriteAnimator : MonoBehaviour | |
| { |
NewerOlder