예제 #1
0
        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;
        }
예제 #2
0
        public void OnHeadShot()
        {
            sestate = SeState.headse;

            hp -= 2.5f;
        }