Skip to content

Instantly share code, notes, and snippets.

View gruman's full-sized avatar

Matthew Gruman gruman

View GitHub Profile
@gruman
gruman / AnimateObjectTile.cs
Last active February 18, 2021 03:23
Automatically animate your tiles in Unity. Zoom in and out at random intervals. Use to add some realism to sprites buy have them subtly zoom in and out.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimateObjectTile : MonoBehaviour
{
private float speed;
public float minSpeed;
public float maxSpeed;