Coin Animation (not synced)

AnimationHandler
This commit is contained in:
brausjonas
2023-01-31 23:21:50 +01:00
parent b479594017
commit 4157107813
16 changed files with 420 additions and 16 deletions
@@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimationHandler : MonoBehaviour
{
[SerializeField] private Animator anim;
public void StartAnimation()
{
anim.SetInteger("value", 1);
Invoke("Stop", 0.6f);
}
private void Stop()
{
anim.SetInteger("value", 0);
}
}