Answer the question
In order to leave comments, you need to log in
Why doesn't the beam read the character's tag?
RaycastHit2D knif = Physics2D.Raycast(transform.position, Vector2.up);
if (knif.collider != null && knif.collider.CompareTag("Player"))
{
Debug.Log("Test");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question