Skip to content

Instantly share code, notes, and snippets.

View cesarrac's full-sized avatar

Cesar R Castillo cesarrac

  • San Juan, Puerto Rico
View GitHub Profile
@cesarrac
cesarrac / unity 2d camera follow
Created June 15, 2018 21:29 — forked from unity3diy/unity 2d camera follow
unity 2d camera follow script, add this script to camera and drag character or your object into it. simple!
using UnityEngine;
using System.Collections;
public class FollowCamera : MonoBehaviour {
public float interpVelocity;
public float minDistance;
public float followDistance;
public GameObject target;
public Vector3 offset;