16 lines
331 B
C#
16 lines
331 B
C#
namespace Assets.MobileOptimizedWater.Scripts
|
|
{
|
|
using UnityEngine;
|
|
|
|
public class AnimationStarter : MonoBehaviour
|
|
{
|
|
[SerializeField] private Animator animator;
|
|
[SerializeField] private Motion animation;
|
|
|
|
public void Awake()
|
|
{
|
|
animator.Play(animation.name);
|
|
}
|
|
}
|
|
}
|