Exemplo n.º 1
0
    public void OnTriggerExit2D(Collider2D collision)
    {
        if (collision.CompareTag("Player"))
        {
            New.Character _character = collision.GetComponent <New.Character>();

            if (_character != null)
            {
                _character.NoIgnoreCollision(_platformColliders);
            }
        }
    }
Exemplo n.º 2
0
    private void OnTriggerExit2D(Collider2D collision)
    {
        if (collision.CompareTag("Player"))
        {
            New.Character _character = collision.GetComponent <New.Character>();

            if (_character != null)
            {
                _character.SetIgnoreColliders(null);
                _character.CanThrough = false;
                _character.NoIgnoreCollision(_platformColliders);
            }
        }
    }