Skip to content

Instantly share code, notes, and snippets.

View kleberandrade's full-sized avatar
Coffee and Code

Kléber de Oliveira Andrade kleberandrade

Coffee and Code
View GitHub Profile
@kleberandrade
kleberandrade / CameraShake.cs
Last active May 7, 2021 14:05
Shake de camera
using System.Collections;
using UnityEngine;
public class CameraShake : Singleton<CameraShake>
{
public AnimationCurve m_MagnitudeCurve;
public void ShakeOnce(float duration, float magnitude)
{
StartCoroutine(Shake(duration, magnitude));