private void OnTriggerEnter(Collider other) { var bullet = other.gameObject.GetComponent <Bullet>(); if (bullet == null) { return; } if (sestate != SeState.headse) { sestate = SeState.nomalse; } other.gameObject.GetComponent <Bullet>().OnHit(); hp -= 1; }
public void OnHeadShot() { sestate = SeState.headse; hp -= 2.5f; }