1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user