Benji's Scene is basically just a bunch of animations lol

This commit is contained in:
MindfulMinun committed 2022-02-25 23:10:26 -06:00
1 parent 3c45111974
commit de77327c9d
19 files changed
+895 -37

No files matched your search

@@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimationControllerTester : MonoBehaviour {
public Animator animator;
public int numberOfAnimations = 1;
public string animationPropertyName = "Animation";
// Update is called once per frame
void Update() {
// Get current time
int second = (int) (Time.time / 1.5f);
int animationIndex = second % numberOfAnimations;
animator.SetInteger(animationPropertyName, animationIndex);
}
}