Example #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            isDetectPlayer = true;
            looktarget     = other.transform;
        }

        if (other.tag == "attack")
        {
            //Debug.Log("Attack");
            int flag = playersc.Burn();
            //Debug.Log(flag + "Human");
            if (flag == 1)
            {
                AnimCall();
            }
        }
    }