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; | |
/// <summary> | |
/// Shake shake shake the screen! | |
/// </summary> | |
public class CameraShaker : MonoBehaviour | |
{ | |
#region Members | |
private static CameraShaker instance; | |
private Transform camTransform; |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// | |
/// </summary> | |
/// <remarks>Source: https://forum.unity3d.com/threads/trying-extrude-a-2d-polygon-to-create-a-mesh.102629/ </remarks> | |
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(PolygonCollider2D))] | |
public class ExtrudeSprite : 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 "Custom/Water2D Surface" { | |
Properties { | |
_Color("Color", Color) = (1,1,1,1) | |
_MainTex ("Normalmap", 2D) = "bump" {} | |
_Magnitude("Magnitude", Range(0,1)) = 0.05 | |
} | |
Category { | |
// We must be transparent, so other objects are drawn before this one. |
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
/// <summary> | |
/// Easy and simple Bezier curves for Unity | |
/// </summary> | |
/// <remarks>http://devmag.org.za/2011/04/05/bzier-curves-a-tutorial/ </remarks> | |
public static class Bezier | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="t">Time, between 0 and 1</param> |
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
// 2015 - Pixelnest STudio | |
// <summary> | |
/// Coroutine helpers for interpolateors | |
/// </summary> | |
public class Interpolators | |
{ | |
public readonly static AnimationCurve LinearCurve; | |
public readonly static AnimationCurve EaseOutCurve; | |
public readonly static AnimationCurve EaseInCurve; | |
public readonly static AnimationCurve EaseInOutCurve; |
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
bs = BrowsD_L = Facial_Blends.BrowsIn_Left = 100 | |
bs = BrowsD_R = Facial_Blends.BrowsIn_Right = 100 | |
bs = BrowsU_C = Facial_Blends.BrowsOuterLower_Left = 100 | |
bs = BrowsU_C = Facial_Blends.BrowsOuterLower_Right = 100 | |
bs = BrowsU_L = Facial_Blends.BrowsUp_Left = 100 | |
bs = BrowsU_R = Facial_Blends.BrowsUp_Right = 100 | |
bs = CheekSquint_L = Facial_Blends.Squint_Left = 100 | |
bs = CheekSquint_R = Facial_Blends.Squint_Right = 100 | |
bs = EyeBlink_L = Facial_Blends.Blink_Left = 100 | |
bs = EyeBlink_R = Facial_Blends.Blink_Right = 100 |
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; | |
namespace InControl | |
{ | |
public class TouchTapControl : TouchControl | |
{ | |
[Header("Dimensions")] | |
public Rect activeArea = new Rect(0.0f, 0.0f, 0.5f, 1.0f); | |
[Header("Options")] |
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
public class BulletPoolScript : MonoBehaviour | |
{ | |
void Start() | |
{ | |
var bulletManager = FindObjectOfType<BulletManagerScript>(); | |
if (bulletManager != null) | |
{ | |
bulletManager.OnBulletSpawned += OnBulletSpawned; | |
bulletManager.OnBulletDestroyed += OnBulletDestroyed; | |
} |
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
// 2014 - Pixelnest Studio | |
using System; | |
using System.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// Ready to use timers for coroutines | |
/// </summary> | |
/// <summary> | |
/// Ready to use timers for coroutines |
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
// Copyright © 2014 Pixelnest Studio | |
// This file is subject to the terms and conditions defined in | |
// file 'LICENSE.md', which is part of this source code package. | |
using UnityEngine; | |
namespace Pixelnest | |
{ | |
/// <summary> | |
/// Trigger an event is a cheat code is recognized | |
/// </summary> |
NewerOlder