void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.CompareTag("Player")) { onTouch.SetActive(true); saveAnimation.SetBool("isActive", true); CheckPointData.onCheckPoint(transform); } }
void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.CompareTag("Player")) { onTouch.SetActive(true); saveAnimation.SetBool("isActive", true); CheckPointData.onCheckPoint(transform); } }