Skip to content

Instantly share code, notes, and snippets.

View sangress's full-sized avatar
💾
coding

Shai Angress sangress

💾
coding
View GitHub Profile
@sangress
sangress / CameraShake.cs
Created November 8, 2017 19:47 — forked from ftvs/CameraShake.cs
Simple camera shake effect for Unity3d, written in C#. Attach to your camera GameObject. To shake the camera, set shakeDuration to the number of seconds it should shake for. It will start shaking if it is enabled.
using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour
{
// Transform of the camera to shake. Grabs the gameObject's transform
// if null.
public Transform camTransform;
// How long the object should shake for.
@sangress
sangress / index.html
Last active August 29, 2015 14:22 — forked from jtrussell/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular JS</title>
</head>
<body ng-app="jsbin">
<div ng-controller="DemoCtrl as demo">
<h1>Hello {{demo.name}}</h1>
</div>