コード例 #1
0
    public override void GetHit(int Damage)
    {
        if (!(m_CurrentState is BaseBattleGetsHit))
        {
            FMOD_StudioSystem.instance.PlayOneShot("event:/Enemy/enemy_hurt_heavy", transform.position);
            StartCoroutine(ShowBlood());

            if (!(m_CurrentState is AIBattleCounterAttacked))
            {
                updatePreviousActions(m_CurrentState.ToString());
            }

            GetComponent <Animator>().SetTrigger("Hit");
            m_CurrentState = new AIBattleGetsHit(this);
            base.GetHit(Damage);
        }
    }
コード例 #2
0
    public override void GetHit(int Damage)
    {
        if (!(m_CurrentState is BaseBattleGetsHit))
        {
            FMOD_StudioSystem.instance.PlayOneShot("event:/Enemy/enemy_hurt_heavy", transform.position);
            StartCoroutine(ShowBlood());

            if(!(m_CurrentState is AIBattleCounterAttacked))
                updatePreviousActions(m_CurrentState.ToString());

            GetComponent<Animator>().SetTrigger("Hit");
            m_CurrentState = new AIBattleGetsHit(this);
            base.GetHit(Damage);
        }
    }