Exemple #1
0
    public virtual void down()
    {
        RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector2.up, rayLength, 1 << LayerHelper.getLayer(LayerHelper.Layer.GOUND_NO_COLLISION));

        if (hit.collider != null)
        {
            OneWayPlatform oneWayPlatForm = hit.collider.gameObject.GetComponent <OneWayPlatform>();
            oneWayPlatForm.unblock(this.name, 0.1f);
        }
    }