Answers for "how to make enemy attack unity"

C#
-2

how to make enemy attack unity

private void OnCollisionEnter(Collision collision)
    {
        if(collision.gameObject.tag == "Enemy")
        {
            Destroy(gameObject);
        }
Posted by: Guest on February-23-2021

Code answers related to "how to make enemy attack unity"

C# Answers by Framework

Browse Popular Code Answers by Language