update tag enemy detection
This commit is contained in:
parent
29b7c6cca5
commit
39d64d7d6b
|
@ -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>
|
|
@ -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
|
||||
|
|
|
@ -25,6 +25,9 @@ public class Enemy : MonoBehaviour
|
|||
gameManager = FindObjectOfType<GameManager>();
|
||||
|
||||
health = maxHealth;
|
||||
|
||||
gameObject.tag = "Enemy";
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
|
Loading…
Reference in New Issue