示例#1
0
    protected override void FixedUpdate()
    {
        if (player.IsGrabbing(this.gameObject))
        {
            targetVelocity = player.GetTargetVelocity();


            //transform.up = player.GetGroundNormal();
        }
        else
        {
            targetVelocity = Vector2.zero;
        }
        base.FixedUpdate();
    }