1
This commit is contained in:
@@ -49,13 +49,23 @@ public class PlayJiaGuAnimator : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
[SerializeField] private List<Animator> childAnimator; // ֱ<><D6B1><EFBFBD>϶<EFBFBD><CFB6><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
public void SetTriggerParameter(string parameterName)
|
||||
{
|
||||
for (int i = 0; i < childAnimator.Count; i++)
|
||||
{
|
||||
childAnimator[i].SetTrigger(parameterName);
|
||||
}
|
||||
}
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.gameObject.name == "PalmBox_L" || other.gameObject.name == "PalmBox_R")
|
||||
{
|
||||
if (listAnimator != null)
|
||||
{
|
||||
SetTriggerParameter("DisTrigger");
|
||||
for (int i = 0; i < listAnimator.Count; i++)
|
||||
{
|
||||
if (HandType == 1)
|
||||
|
||||
Reference in New Issue
Block a user