备份CatanBuilding瘦身独立工程

This commit is contained in:
JSD\13999
2026-05-26 16:15:54 +08:00
commit 2d0e6a61b7
12001 changed files with 2431925 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using Spine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EventWashingFinger : MonoBehaviour
{
Animator animator;
void Awake()
{
animator = this.GetComponent<Animator>();
SetAnimationEnabled(false);
}
public void PlayAnimationForPainting()
{
PlayAnimation("finger_loop_wash");
}
public void PlayAnimationDefault()
{
PlayAnimation("finger_loop_wash2");
}
private void PlayAnimation(string name)
{
SetAnimationEnabled(true);
if (animator != null)
{
animator.Play(name);
}
}
public void SetAnimationEnabled(bool enabled)
{
if (animator != null)
{
animator.enabled = enabled;
}
}
}