Skip to content

Instantly share code, notes, and snippets.

@nelstuff
nelstuff / CharFaceAnim.cs
Last active February 26, 2022 05:41
Nel's Simple Eye Animation
using UnityEngine;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using System.Collections;
[ExecuteAlways]
public class CharFaceAnim : MonoBehaviour{
[Header("Idle Eye Movement")]
public float2 idleMoveAmount = float2(4, 0);
public float idleMoveTime = 0.4f;