Пример #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         onTouch.SetActive(true);
         saveAnimation.SetBool("isActive", true);
         CheckPointData.onCheckPoint(transform);
     }
 }