Ejemplo n.º 1
0
        private void HandleSwordCollisionEnter(Collision i_other)
        {
            if (!m_attackLaunched)
            {
                return;
            }

            AttackBlock attackBlock = i_other.gameObject.GetComponent <AttackBlock>();

            if (attackBlock)
            {
                Debug.Log("Attack Recoil Hit");
                attackController.BlockCurrentAttack();
            }
        }