mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
Seiden's expressions
This commit is contained in:
29 files changed
+1104
-112
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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("Emotion", (counter / 200) % 3);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user