Skip to content

TypeScript code snippet – How to find the number of objects with the same tag in unity?

 if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) {    // Do something }
See also  How to add values in float array in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.