mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
20 lines
428 B
C#
20 lines
428 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Expressions : MonoBehaviour {
|
|
public Animator animator;
|
|
private int counter;
|
|
|
|
// Start is called before the first frame update
|
|
void Start() {
|
|
counter = 0;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update() {
|
|
counter++;
|
|
animator.SetInteger("Animation", (counter / 100) % 8);
|
|
}
|
|
}
|