Minor - Add Assets And Support Dual Screen
This commit is contained in:
15
Assets/MobileDepthWater/Scripts/AnimationStarter.cs
Normal file
15
Assets/MobileDepthWater/Scripts/AnimationStarter.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user