1
This commit is contained in:
@@ -53,12 +53,23 @@ public class SingleTouchPlayAnimator : MonoBehaviour
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
[SerializeField] private GameObject Vfx;
|
||||
[SerializeField] private GameObject Vfx1;
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.gameObject.name == "PalmBox_L" || other.gameObject.name == "PalmBox_R")
|
||||
{
|
||||
SetTriggerParameter("DisTrigger");
|
||||
if (Vfx != null)
|
||||
{
|
||||
Destroy(Vfx);
|
||||
Vfx = null;
|
||||
}
|
||||
if (Vfx1 != null)
|
||||
{
|
||||
Destroy(Vfx1);
|
||||
Vfx1 = null;
|
||||
}
|
||||
animator.Play("Touch");
|
||||
animatorpig.Play("Touch");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user