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
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 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 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; |
OlderNewer