Answers for "How to make an enemy unity"

C#
-2

How to make an enemy 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 an enemy unity"

C# Answers by Framework

Browse Popular Code Answers by Language