This commit is contained in:
kridoo
2025-09-28 09:28:37 +08:00
parent f7d940311c
commit 66faac5b28
8 changed files with 61 additions and 49 deletions

View File

@@ -5,8 +5,9 @@ using UnityEngine;
public class SingleTouchPlayAnimator : MonoBehaviour
{
public GameObject animatorDaoJiu;
public GameObject animatorDaoJiuzhu;
Animator animator;
Animator animatorpig;
//<2F><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
bool isRun = false;
float waitTime = 5f;
@@ -16,6 +17,7 @@ public class SingleTouchPlayAnimator : MonoBehaviour
void Start()
{
animator = GetComponent<Animator>();
animatorpig= animatorDaoJiuzhu.GetComponent<Animator>();
if (animatorDaoJiu != null)
{
animatorDaoJiu.SetActive(false);
@@ -43,7 +45,8 @@ public class SingleTouchPlayAnimator : MonoBehaviour
{
if (other.gameObject.name == "PalmBox_L" || other.gameObject.name == "PalmBox_R")
{
animator.Play("Touch");
animator.Play("Touch");
animatorpig.Play("Touch");
}
if (animatorDaoJiu != null)