20 lines
366 B
C#
20 lines
366 B
C#
using UnityEngine;
|
|
|
|
public class SupplyDropContentModel : MonoBehaviour
|
|
{
|
|
public Animator animator;
|
|
public void SetTrigger(string name)
|
|
{
|
|
if (animator == null)
|
|
return;
|
|
animator.SetTrigger(name);
|
|
}
|
|
|
|
public void Play()
|
|
{
|
|
if (animator == null)
|
|
return;
|
|
animator.SetTrigger("Play");
|
|
}
|
|
}
|