initial commit

This commit is contained in:
cblech
2025-01-04 13:29:07 +01:00
commit 22f67f4347
124 changed files with 12157 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
using System;
using UnityEngine;
public class AnimationStarter : MonoBehaviour
{
[SerializeField]
private Animation _animation;
private void OnValidate()
{
if (!_animation && TryGetComponent<Animation>(out var animation))
{
_animation = animation;
}
}
public void Play()
{
_animation.Play();
}
}