36 lines
408 B
C#
36 lines
408 B
C#
using UnityEngine;
|
|
|
|
public class ChristmasSockAnimate : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private Animator animator;
|
|
|
|
private int SockID;
|
|
|
|
public int sockID
|
|
{
|
|
get
|
|
{
|
|
return SockID;
|
|
}
|
|
set
|
|
{
|
|
SockID = value;
|
|
}
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
animator.SetTrigger($"Sock{SockID}");
|
|
}
|
|
|
|
public void DestroyAnimateSock()
|
|
{
|
|
Object.Destroy(base.gameObject);
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
}
|
|
}
|