update tag enemy detection

This commit is contained in:
Shavira 2025-05-24 10:31:10 +07:00
parent 29b7c6cca5
commit 39d64d7d6b
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JSXDomNesting" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

View File

@ -1914,7 +1914,7 @@ GameObject:
- component: {fileID: 1879414516}
m_Layer: 0
m_Name: Enemy
m_TagString: Untagged
m_TagString: Enemy
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0

View File

@ -25,6 +25,9 @@ public class Enemy : MonoBehaviour
gameManager = FindObjectOfType<GameManager>();
health = maxHealth;
gameObject.tag = "Enemy";
}
void Update()