Esempio n. 1
0
    void OnTriggerEnter(Collider other)
    {
        //DamageCollider dc = other.GetComponent<DamageCollider>();
        //if (dc == null)
        //    return;

        if (states)
        {
            EnemyStates eSt = other.transform.GetComponentInParent <EnemyStates>();

            if (eSt)
            {
                eSt.CheckForParry(transform.root, states);
            }
        }
        if (eStates)
        {
            //check for player
        }
    }