备份CatanBuilding瘦身独立工程
This commit is contained in:
19
Assets/Scripts/SupplyDrop/SupplyDropContentModel.cs
Normal file
19
Assets/Scripts/SupplyDrop/SupplyDropContentModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user