Ejemplo n.º 1
0
    private void AttachToLadder(Ladder ladder)
    {
        m_rb.bodyType    = RigidbodyType2D.Kinematic;
        m_gravity        = Vector2.zero;
        m_attachedLadder = ladder;
        var attachmentPoint = m_attachedLadder.GetAttachingPosition(transform.position);

        transform.position = attachmentPoint;
        Mode = MovementMode.Ladder;
    }